Constructor
Base class for scene graph objects
Attributes
Unique number of this object instance
Optional name of the object (doesn’t have to be unique)
Scene graph attributes
Object’s parent in scene graph
Array with object’s children
Transform attributes
Order of axis for Euler angles
string - default XYZ
Rotation quaternion
Use quaternion instead of Euler angles for specifying local rotation
boolean - default false
float - default 0.0
Maximum scale from X, Y, Z scale components
float - default 1.0
Override depth-sorting order if non null
float - default null
Appearance flags
Object gets rendered if true
boolean - default true
Both sides of faces visible if true
default false
Backside of face visible
default false
Gets rendered into shadow map
boolean - default false
Material gets baked in shadow receiving
boolean - default false
Scene graph flags
boolean - default true
boolean - default true
boolean - default true
boolean - default true
Methods
Translates object along arbitrary axis by distance
Arguments: |
|
---|
Translates object along X-axis by distance
Arguments: |
|
---|
Translates object along Y-axis by distance
Arguments: |
|
---|
Translates object along Z-axis by distance
Arguments: |
|
---|
Rotates object to face point in space
Arguments: |
|
---|
Removes child object from this object
Arguments: |
|
---|
Gets first child with name matching the argument (searches whole subgraph recursively if flag is set).
Arguments: |
|
---|---|
Returns: | child with matching name or undefined |
Rtype : |
Updates local transform
Updates global transform of the object and its children
Example