Class: Container3D

Container3D

new Container3D()

Container3D is a 3D element meant to be added to a Stage3D or Group3D. POINT OF CONFUSION: it is meant to contain normal CreateJS 2D objects (like Shape, and Bitmap, etc) NOT other 3D elements. To contain other 3D elements to move about in 3D space see Group3D. This class is meant to be primarily used for its containing properties which it inherits from the createjs.Container class. Basically use it in a Stage3D in 3D in the way you'd use a createjs.Container object in a createjs.Stage object in 2D.

Furthermore this is the means by which you'd use other CreateJS objects in DepthJS like Bitmap, BitmapText, Sprite, etc. You'd use addChild to put it in a Container3D and then the Container3D would be what's added to the 3D world.

See createjs.Container to understand the properties, methods, and events it inherits from createjs.Container.
Source:

Extends

Members

lockFacingFront :Boolean

Allows locking of the DisplayObject3D facing forward at all times if set to true, regardless or local or global rotation.
Type:
  • Boolean
Inherited From:
Default Value:
  • false
Source:

rotX :Number

The rotX property sets the x-axis rotation value for the DisplayObject3D instance in degrees.
Type:
  • Number
Inherited From:
Default Value:
  • 0
Source:

rotY :Number

The rotY property sets the y-axis rotation value for the DisplayObject3D instance in degrees.
Type:
  • Number
Inherited From:
Default Value:
  • 0
Source:

rotZ :Number

The rotY property sets the y-axis rotation value for the DisplayObject3D instance in degrees.
Type:
  • Number
Inherited From:
Default Value:
  • 0
Source:

stage3D :Stage3D

Each DisplayObject3D has a stage3D property that allows it to tell which stage it is currently in the display list of. Is null when not in a display list.
Type:
Inherited From:
Default Value:
  • null
Source:

transform3D :Transform3D

Contains the DipslayObject3D's local and global transform data.
Type:
Inherited From:
Source:

x :Number

The x property sets the x coordinate value for the DisplayObject3D instance.
Type:
  • Number
Inherited From:
Default Value:
  • 0
Source:

y :Number

The y property sets the y coordinate value for the DisplayObject3D instance.
Type:
  • Number
Inherited From:
Default Value:
  • 0
Source:

z :Number

The z property sets the z coordinate value for the DisplayObject3D instance.
Type:
  • Number
Inherited From:
Default Value:
  • 0
Source: