env3d.advanced
Class EnvNode
java.lang.Object
env3d.GameObjectAdapter
env3d.advanced.EnvAbstractNode
env3d.advanced.EnvNode
- Direct Known Subclasses:
- Creature, EnvPhysicsNode, GameObject, SceneNode
public class EnvNode
- extends EnvAbstractNode
Fields inherited from class env3d.GameObjectAdapter |
assetManager, currentAction, currentModel, currentTexture, internalObject, jme_node, lighting, locator, mat, mat_lit, objectCache, q, qX, qY, qZ |
Constructor Summary |
EnvNode()
Creates a new instance of EnvObject |
Methods inherited from class env3d.advanced.EnvAbstractNode |
attach, getRotateX, getRotateY, getRotateZ, getScale, getX, getY, getZ, remove, setRotateX, setRotateY, setRotateZ, setScale, setX, setY, setZ, update, updateRotation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvNode
public EnvNode()
- Creates a new instance of EnvObject
getTexture
public java.lang.String getTexture()
setTexture
public void setTexture(java.lang.String texture)
getModel
public java.lang.String getModel()
setModel
public void setModel(java.lang.String model)
distance
public double distance(EnvNode obj)
- returns the distance between this and another object
- Parameters:
obj
- the other object
- Returns:
- distance
distance
public double distance(double x,
double y,
double z)
useLightingMaterial
public void useLightingMaterial(boolean lighting)
- Overrides:
useLightingMaterial
in class GameObjectAdapter
isTransparent
public boolean isTransparent()
- Returns:
- the transparent
setTransparent
public void setTransparent(boolean transparent)
- Parameters:
transparent
- the transparent to set. Only works if the texture
has an alpha channel.