com.jme.scene.geometryinstancing.instance
Class GeometryInstanceAttributes
java.lang.Object
com.jme.scene.geometryinstancing.instance.GeometryInstanceAttributes
- Direct Known Subclasses:
- GeometryBatchInstanceAttributes
public class GeometryInstanceAttributes
- extends java.lang.Object
GeometryInstanceAttributes
specifies the attributes for a
GeometryInstance
.
- Author:
- Patrik Lindegrén
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
translation
protected Vector3f translation
scale
protected Vector3f scale
rotation
protected Quaternion rotation
mtNormal
protected Matrix4f mtNormal
mtWorld
protected Matrix4f mtWorld
GeometryInstanceAttributes
public GeometryInstanceAttributes(Vector3f translation,
Vector3f scale,
Quaternion rotation)
buildMatrices
public void buildMatrices()
buildMatrices
updates the world and rotation matrix
getScale
public Vector3f getScale()
setScale
public void setScale(Vector3f scale)
- After using the
setScale
function, user needs to call the
buildMatrices
function
- Parameters:
scale
-
getTranslation
public Vector3f getTranslation()
setTranslation
public void setTranslation(Vector3f translation)
- After using the
setTranslation
function, user needs to call
the buildMatrices
function
- Parameters:
translation
-
getRotation
public Quaternion getRotation()
setRotation
public void setRotation(Quaternion rotation)
- After using the
setRotation
function, user needs to call the
buildMatrices
function
- Parameters:
rotation
-
getWorldMatrix
public Matrix4f getWorldMatrix()
getNormalMatrix
public Matrix4f getNormalMatrix()