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 | ||
maxPersp : Number = 0
The maximum perspective value from which the 3d object can be viewed.
| Object3D | ||
minPersp : Number = 0
The minimum perspective value from which the 3d object can be viewed.
| 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 | ||
moveBackward(distance:Number):void
Moves the 3D object backwards along it's local z axis
| Object3D | ||
moveDown(distance:Number):void
Moves the 3D object backwards along it's local y axis
| Object3D | ||
moveForward(distance:Number):void
Moves the 3D object forwards along it's local z axis
| Object3D | ||
moveLeft(distance:Number):void
Moves the 3D object backwards along it's local x axis
| Object3D | ||
moveRight(distance:Number):void
Moves the 3D object forwards along it's local x axis
| Object3D | ||
moveUp(distance:Number):void
Moves the 3D object forwards along it's local y axis
| Object3D | ||
pitch(degrees:Number):void
Rotates the 3D object around it's local x-axis
| Object3D | ||
roll(degrees:Number):void
Rotates the 3D object around it's local z-axis
| Object3D | ||
rotate(degrees:Number, axis:Vector3D, pivotPoint:Vector3D = null):void
Rotates the 3D object around an axis by a defined degrees
| Object3D | ||
translate(axis:Vector3D, distance:Number):void
Moves the 3D object along a vector by a defined length
| Object3D | ||
yaw(degrees:Number):void
Rotates the 3D object around it's local y-axis
| 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.
maxPersp | property |
public var maxPersp:Number = 0
The maximum perspective value from which the 3d object can be viewed.
minPersp | property |
public var minPersp:Number = 0
The minimum perspective value from which the 3d object can be viewed.
position | property |
position:Vector3D
[read-only]Returns a 3d vector representing the local position of the 3d object.
Implementation public function get position():Vector3D
scene | property |
scene:Scene3D
[read-only]Returns the scene to which the 3d object belongs
Implementation 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.
Implementation public function get sceneMatrix3D():Matrix3D
screenZ | property |
screenZ:Number
[read-only]Returns the z-sorting position of the 3d object.
Implementation 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.
Implementation public function get viewMatrix3D():Matrix3D
Object3D | () | constructor |
public function Object3D()
Init Parameters
clone | () | method |
public function clone(object:Object3D = null):Object3D
Duplicates the 3D object's properties to another Object3D
object
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
.
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
|
moveBackward | () | method |
public function moveBackward(distance:Number):void
Moves the 3D object backwards along it's local z axis
Parametersdistance:Number — The length of the movement
|
moveDown | () | method |
public function moveDown(distance:Number):void
Moves the 3D object backwards along it's local y axis
Parametersdistance:Number — The length of the movement
|
moveForward | () | method |
public function moveForward(distance:Number):void
Moves the 3D object forwards along it's local z axis
Parametersdistance:Number — The length of the movement
|
moveLeft | () | method |
public function moveLeft(distance:Number):void
Moves the 3D object backwards along it's local x axis
Parametersdistance:Number — The length of the movement
|
moveRight | () | method |
public function moveRight(distance:Number):void
Moves the 3D object forwards along it's local x axis
Parametersdistance:Number — The length of the movement
|
moveUp | () | method |
public function moveUp(distance:Number):void
Moves the 3D object forwards along it's local y axis
Parametersdistance:Number — The length of the movement
|
pitch | () | method |
public function pitch(degrees:Number):void
Rotates the 3D object around it's local x-axis
Parametersdegrees:Number — The degree of the rotation.
|
roll | () | method |
public function roll(degrees:Number):void
Rotates the 3D object around it's local z-axis
Parametersdegrees:Number — The degree of the rotation.
|
rotate | () | method |
public function rotate(degrees:Number, axis:Vector3D, pivotPoint:Vector3D = null):void
Rotates the 3D object around an axis by a defined degrees
Parametersdegrees:Number — The degree of the rotation.
|
|
axis:Vector3D — The axis or direction of rotation. The usual axes are the X_AXIS (Vector3D(1,0,0)), Y_AXIS (Vector3D(0,1,0)), and Z_AXIS (Vector3D(0,0,1)).
|
|
pivotPoint:Vector3D (default = null ) — A point that determines the center of an object's rotation. The default pivot point for an object is its registration point.
|
translate | () | method |
public function translate(axis:Vector3D, distance:Number):void
Moves the 3D object along a vector by a defined length
Parametersaxis:Vector3D — The vector defining the axis of movement
|
|
distance:Number — The length of the movement
|
yaw | () | method |
public function yaw(degrees:Number):void
Rotates the 3D object around it's local y-axis
Parametersdegrees:Number — The degree of the rotation.
|
mouseDown | event |
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
Dispatched when a user moves the cursor while it is over the 3d object.
mouseOut | event |
away3dlite.events.MouseEvent3D
Dispatched when a user moves the cursor away from the 3d object.
mouseOver | event |
away3dlite.events.MouseEvent3D
Dispatched when a user moves the cursor over the 3d object.
mouseUp | event |
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
Dispatched when a user rolls out of the 3d object.
rollOver | event |