public abstract class SceneObject
extends java.lang.Object
Constructor and Description |
---|
SceneObject() |
Modifier and Type | Method and Description |
---|---|
void |
attachTo(SceneNode node)
Attaches this object to a SceneNode
|
SceneNode |
detach()
Detaches this node from its parent
|
Vector3 |
getAbsolutePos()
Gets the absolute position of this SceneObject
|
float[] |
getModelMatrix()
Get the model matrix of this scene object
|
SceneNode |
getParent()
Gets the parent SceneNode of this object
|
Vector3 |
getRelativePos()
Gets the position of this SceneObject relative to the parent of the parent SceneNode
|
void |
onTransformed()
Called if the node to which this scene object is attached to
has been transformed due to translation, rotation, etc
|
public void attachTo(SceneNode node)
node
- The node onto which this SceneObject will be attachedpublic SceneNode detach()
public SceneNode getParent()
public Vector3 getAbsolutePos()
public Vector3 getRelativePos()
public float[] getModelMatrix()
public void onTransformed()