Class: Shape3D

Shape3D

new Shape3D(graphicsopt)

Shape3D is a 3D element meant to be added to a Stage3D or Group3D. It is meant to be primarily used for its graphics property which it inherits from the createjs.Shape class. Basically use it in a Stage3D in 3D in the way you'd use a createjs.Shape object in a createjs.Stage object in 2D.

See createjs.Shape to understand the properties, methods, and events it inherits from createjs.Shape.
Parameters:
Name Type Attributes Default Description
graphics createjs.Graphics <optional>
null Shortcut to the set a createjs.Graphics property on the Shape3D instance.
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: