Class: PaperContainer3D

PaperContainer3D

new PaperContainer3D(front, back)

PaperContainer3D is an otherwise normal Container3D except that you can set a front and back property which will show one when facing forward and the other when backwards. Basically making a two sided plane.

See createjs.Container to understand the properties, methods, and events it inherits from createjs.Container.
Parameters:
Name Type Description
front createjs.DisplayObject Any type of CreateJS 2D display object to show as the front side.
back createjs.DisplayObject Any type of CreateJS 2D display object to show as the back side.
Source:

Extends

Members

back :createjs.DisplayObject

Any CreateJS 2D display object to show as the back side.
Type:
  • createjs.DisplayObject
Default Value:
  • null
Source:

front :createjs.DisplayObject

Any CreateJS 2D display object to show as the front side.
Type:
  • createjs.DisplayObject
Default Value:
  • null
Source:

(readonly) frontFacing :Boolean

Read only true or false telling you whether or not the PaperContainer3D instance is currently considered to be front or back facing according to the rendering engine. It is recommended that you use this as opposed to just checking its rotation since this reflects how its showing in the global scheme. It's Group3D could be the one with the rotation and then this objects rotations could still all be zero. This lets you know anyway.
Type:
  • Boolean
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: