env3d.advanced
Class EnvAbstractNode
java.lang.Object
env3d.GameObjectAdapter
env3d.advanced.EnvAbstractNode
- Direct Known Subclasses:
- EnvNode, EnvParticle, EnvTerrain, EnvWater
public abstract class EnvAbstractNode
- extends GameObjectAdapter
EnvAbstractNode provides a way to interact with the underlying JavaMonkey
scene graph. This gives better performance and allows for more advanced
visual effects.
Fields inherited from class env3d.GameObjectAdapter |
assetManager, currentAction, currentModel, currentTexture, internalObject, jme_node, lighting, locator, mat, mat_lit, objectCache, q, qX, qY, qZ |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rotateX
protected float rotateX
rotateY
protected float rotateY
rotateZ
protected float rotateZ
scale
protected float scale
EnvAbstractNode
public EnvAbstractNode()
update
public void update()
- Overrides:
update
in class GameObjectAdapter
attach
public void attach(EnvAbstractNode n)
- Attach another EnvAbastractNode to this node
- Parameters:
n
-
remove
public void remove(EnvAbstractNode n)
getX
public double getX()
- Returns:
- the x
setX
public void setX(double x)
- Parameters:
x
- the x to set
getY
public double getY()
- Returns:
- the y
setY
public void setY(double y)
- Parameters:
y
- the y to set
getZ
public double getZ()
- Returns:
- the z
setZ
public void setZ(double z)
- Parameters:
z
- the z to set
getRotateX
public double getRotateX()
- Returns:
- the rotateX
setRotateX
public void setRotateX(double rotateX)
- Parameters:
rotateX
- the rotateX to set
getRotateY
public double getRotateY()
- Returns:
- the rotateY
setRotateY
public void setRotateY(double rotateY)
- Parameters:
rotateY
- the rotateY to set
getRotateZ
public double getRotateZ()
- Returns:
- the rotateZ
setRotateZ
public void setRotateZ(double rotateZ)
- Parameters:
rotateZ
- the rotateZ to set
getScale
public double getScale()
- Returns:
- the scale
setScale
public void setScale(double scale)
- Parameters:
scale
- the scale to set
updateRotation
public void updateRotation()