Packageaway3dlite.core.base
Classpublic class Object3D
InheritanceObject3D Inheritance flash.display.Sprite
Subclasses Camera3D, Mesh

The base class for all 3d objects.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
Creates a new Object3D object.
Object3D
  
clone(object:Object3D = null):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
Protected Methods
 MethodDefined By
  
copyMatrix3D(m1:Matrix3D, m2:Matrix3D):void
Object3D
Events
 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
Property Detail
animationLibraryproperty
public var animationLibrary:AnimationLibrary

Used in the loaders to store all parsed animation data contained in the model.

geometryLibraryproperty 
public var geometryLibrary:GeometryLibrary

Used in loaders to store all parsed geometry data contained in the model.

layerproperty 
public var layer:Sprite

An optional layer sprite used to draw into inseatd of the default view.

materialLibraryproperty 
public var materialLibrary:MaterialLibrary

Used in loaders to store all parsed materials contained in the model.

positionproperty 
position:Vector3D  [read-only]

Returns a 3d vector representing the local position of the 3d object.


Implementation
    public function get position():Vector3D
sceneproperty 
scene:Scene3D  [read-only]

Returns the scene to which the 3d object belongs


Implementation
    public function get scene():Scene3D
sceneMatrix3Dproperty 
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
screenZproperty 
screenZ:Number  [read-only]

Returns the z-sorting position of the 3d object.


Implementation
    public function get screenZ():Number
typeproperty 
public var type:String

Returns the type of 3d object.

urlproperty 
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.

viewMatrix3Dproperty 
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
Constructor Detail
Object3D()Constructor
public function Object3D()

Creates a new Object3D object.

####INIT####
Method Detail
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

Returns
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

Event Detail
mouseDown Event
Event Object Type: away3dlite.events.MouseEvent3D
MouseEvent3D.type property = away3dlite.events.MouseEvent3D

Dispatched when a user presses the left hand mouse button while the cursor is over the 3d object.

mouseMove Event  
Event Object Type: away3dlite.events.MouseEvent3D
MouseEvent3D.type property = away3dlite.events.MouseEvent3D

Dispatched when a user moves the cursor while it is over the 3d object.

mouseOut Event  
Event Object Type: away3dlite.events.MouseEvent3D
MouseEvent3D.type property = away3dlite.events.MouseEvent3D

Dispatched when a user moves the cursor away from the 3d object.

mouseOver Event  
Event Object Type: away3dlite.events.MouseEvent3D
MouseEvent3D.type property = away3dlite.events.MouseEvent3D

Dispatched when a user moves the cursor over the 3d object.

mouseUp Event  
Event Object Type: away3dlite.events.MouseEvent3D
MouseEvent3D.type property = away3dlite.events.MouseEvent3D

Dispatched when a user releases the left hand mouse button while the cursor is over the 3d object.

rollOut Event  
Event Object Type: away3dlite.events.MouseEvent3D
MouseEvent3D.type property = away3dlite.events.MouseEvent3D

Dispatched when a user rolls out of the 3d object.

rollOver Event  
Event Object Type: away3dlite.events.MouseEvent3D
MouseEvent3D.type property = away3dlite.events.MouseEvent3D

Dispatched when a user rolls over the 3d object.