Package | away3dlite.core.base |
Class | public class Object3D |
Inheritance | Object3D flash.display.Sprite |
Subclasses | Camera3D, Mesh |
Property | Defined By | ||
---|---|---|---|
animationLibrary : AnimationLibrary
Used in the loaders to store all parsed animation data contained in the model. | Object3D | ||
geometryLibrary : GeometryLibrary
Used in loaders to store all parsed geometry data contained in the model. | Object3D | ||
layer : Sprite
An optional layer sprite used to draw into inseatd of the default view. | Object3D | ||
materialLibrary : MaterialLibrary
Used in loaders to store all parsed materials contained in the model. | Object3D | ||
position : Vector3D [read-only]
Returns a 3d vector representing the local position of the 3d object. | Object3D | ||
scene : Scene3D [read-only]
Returns the scene to which the 3d object belongs
| Object3D | ||
sceneMatrix3D : Matrix3D [read-only]
Returns a 3d matrix representing the absolute transformation of the 3d object in the scene. | Object3D | ||
screenZ : Number [read-only]
Returns the z-sorting position of the 3d object. | Object3D | ||
type : String
Returns the type of 3d object. | Object3D | ||
url : String
Returns the source url of the 3d object, or the name of the family of generative geometry objects if not loaded from an external source. | Object3D | ||
viewMatrix3D : Matrix3D [read-only]
Returns a 3d matrix representing the absolute transformation of the 3d object in the view. | Object3D |
Method | Defined By | ||
---|---|---|---|
Object3D()
Creates a new Object3D object. | Object3D | ||
Duplicates the 3d object's properties to another Object3D object
| Object3D | ||
lookAt(target:Vector3D, upAxis:Vector3D = null):void
Rotates the 3d object around to face a point defined relative to the local coordinates of the parent ObjectContainer3D. | Object3D |
Method | Defined By | ||
---|---|---|---|
copyMatrix3D(m1:Matrix3D, m2:Matrix3D):void | Object3D |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when a user presses the left hand mouse button while the cursor is over the 3d object. | Object3D | |||
Dispatched when a user moves the cursor while it is over the 3d object. | Object3D | |||
Dispatched when a user moves the cursor away from the 3d object. | Object3D | |||
Dispatched when a user moves the cursor over the 3d object. | Object3D | |||
Dispatched when a user releases the left hand mouse button while the cursor is over the 3d object. | Object3D | |||
Dispatched when a user rolls out of the 3d object. | Object3D | |||
Dispatched when a user rolls over the 3d object. | Object3D |
animationLibrary | property |
public var animationLibrary:AnimationLibrary
Used in the loaders to store all parsed animation data contained in the model.
geometryLibrary | property |
public var geometryLibrary:GeometryLibrary
Used in loaders to store all parsed geometry data contained in the model.
layer | property |
public var layer:Sprite
An optional layer sprite used to draw into inseatd of the default view.
materialLibrary | property |
public var materialLibrary:MaterialLibrary
Used in loaders to store all parsed materials contained in the model.
position | property |
position:Vector3D
[read-only] Returns a 3d vector representing the local position of the 3d object.
public function get position():Vector3D
scene | property |
scene:Scene3D
[read-only] Returns the scene to which the 3d object belongs
public function get scene():Scene3D
sceneMatrix3D | property |
sceneMatrix3D:Matrix3D
[read-only] Returns a 3d matrix representing the absolute transformation of the 3d object in the scene.
public function get sceneMatrix3D():Matrix3D
screenZ | property |
screenZ:Number
[read-only] Returns the z-sorting position of the 3d object.
public function get screenZ():Number
type | property |
public var type:String
Returns the type of 3d object.
url | property |
public var url:String
Returns the source url of the 3d object, or the name of the family of generative geometry objects if not loaded from an external source.
viewMatrix3D | property |
viewMatrix3D:Matrix3D
[read-only] Returns a 3d matrix representing the absolute transformation of the 3d object in the view.
public function get viewMatrix3D():Matrix3D
Object3D | () | Constructor |
public function Object3D()
Creates a new Object3D
object.
clone | () | method |
public function clone(object:Object3D = null):Object3D
Duplicates the 3d object's properties to another Object3D
object
Parameters
object:Object3D (default = null ) — [optional] The new object instance into which all properties are copied
|
Object3D — The new object instance with duplicated properties applied
|
copyMatrix3D | () | method |
protected function copyMatrix3D(m1:Matrix3D, m2:Matrix3D):void
Parameters
m1:Matrix3D | |
m2:Matrix3D |
lookAt | () | method |
public function lookAt(target:Vector3D, upAxis:Vector3D = null):void
Rotates the 3d object around to face a point defined relative to the local coordinates of the parent ObjectContainer3D
.
Parameters
target:Vector3D — The vector defining the point to be looked at
| |
upAxis:Vector3D (default = null ) — An optional vector used to define the desired up orientation of the 3d object after rotation has occurred
|
mouseDown | Event |
away3dlite.events.MouseEvent3D
away3dlite.events.MouseEvent3D
Dispatched when a user presses the left hand mouse button while the cursor is over the 3d object.
mouseMove | Event |
away3dlite.events.MouseEvent3D
away3dlite.events.MouseEvent3D
Dispatched when a user moves the cursor while it is over the 3d object.
mouseOut | Event |
away3dlite.events.MouseEvent3D
away3dlite.events.MouseEvent3D
Dispatched when a user moves the cursor away from the 3d object.
mouseOver | Event |
away3dlite.events.MouseEvent3D
away3dlite.events.MouseEvent3D
Dispatched when a user moves the cursor over the 3d object.
mouseUp | Event |
away3dlite.events.MouseEvent3D
away3dlite.events.MouseEvent3D
Dispatched when a user releases the left hand mouse button while the cursor is over the 3d object.
rollOut | Event |
away3dlite.events.MouseEvent3D
away3dlite.events.MouseEvent3D
Dispatched when a user rolls out of the 3d object.
rollOver | Event |
away3dlite.events.MouseEvent3D
away3dlite.events.MouseEvent3D
Dispatched when a user rolls over the 3d object.