Coppercube API Documentation
Class MeshSceneNode
A scene node displaying a static Mesh.
Extends
SceneNode.
Method Attributes | Method Name and Description |
---|---|
createClone(newparent)
|
|
Get the axis aligned, not transformed bounding box of this node.
|
|
getMesh()
Returns the Mesh drawn by this scene node.
|
|
getType()
Returns the type string of the scene node.
|
|
setMesh(m)
Sets the Mesh which should be drawn by this scene node.
|
- Methods borrowed from class SceneNode:
- addAnimator, addChild, getAbsolutePosition, getAbsoluteTransformation, getAnimatorOfType, getAnimators, getMaterial, getMaterialCount, getParent, getRelativeTransformation, getTransformedBoundingBox, init, OnAnimate, OnRegisterSceneNode, removeAnimator, removeChild, render, updateAbsolutePosition
Method Detail
createClone(newparent)
- Parameters:
- newparent
{Box3D}
getBoundingBox()
Get the axis aligned, not transformed bounding box of this node.
This means that if this node is an animated 3d character, moving in a room, the bounding box will
always be around the origin. To get the box in real world coordinates, just transform it with the matrix
you receive with getAbsoluteTransformation() or simply use getTransformedBoundingBox(), which does the same.
- Returns:
- {Box3D} Bounding box of this scene node.
{Mesh}
getMesh()
Returns the Mesh drawn by this scene node.
- Returns:
- {Mesh} the 3d mesh of this scene node
{String}
getType()
Returns the type string of the scene node.
Returns 'mesh' for the mesh scene node.
- Returns:
- {String} type name of the scene node.
setMesh(m)
Sets the Mesh which should be drawn by this scene node.
- Parameters:
- m
- {Mesh} the mesh to draw from now on