env3d.advanced
Class EnvPhysicsNode

java.lang.Object
  extended by env3d.GameObjectAdapter
      extended by env3d.advanced.EnvAbstractNode
          extended by env3d.advanced.EnvNode
              extended by env3d.advanced.EnvPhysicsNode
Direct Known Subclasses:
Ball, Bomb, Church

public class EnvPhysicsNode
extends EnvNode


Field Summary
protected  com.jme3.bullet.control.RigidBodyControl physicsControl
           
 
Fields inherited from class env3d.advanced.EnvAbstractNode
rotateX, rotateY, rotateZ, scale
 
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
EnvPhysicsNode()
           
EnvPhysicsNode(EnvAbstractNode n)
           
 
Method Summary
 com.jme3.bullet.control.RigidBodyControl getControl()
           
 com.jme3.math.Vector3f getLocation()
           
 double getRotateX()
           
 double getRotateY()
           
 double getRotateZ()
           
 void setCollisionShape(com.jme3.bullet.collision.shapes.CollisionShape s)
           
 void setFriction(double f)
           
 void setGravity(double x, double y, double z)
           
 void setLinearVelocity(double x, double y, double z)
           
 void setLocation(double x, double y, double z)
           
 void setMass(double mass)
           
 void setModel(java.lang.String model)
           
 void setRestitution(double r)
           
 void setScale(double scale)
           
 void setScale(double x, double y, double z)
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 
Methods inherited from class env3d.advanced.EnvNode
distance, distance, getModel, getTexture, isTransparent, setTexture, setTransparent, useLightingMaterial
 
Methods inherited from class env3d.advanced.EnvAbstractNode
attach, getScale, getX, getY, getZ, remove, setRotateX, setRotateY, setRotateZ, update, updateRotation
 
Methods inherited from class env3d.GameObjectAdapter
drawSquare, drawSquare, getFieldFromObject, getJme_node, registerLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

physicsControl

protected com.jme3.bullet.control.RigidBodyControl physicsControl
Constructor Detail

EnvPhysicsNode

public EnvPhysicsNode()

EnvPhysicsNode

public EnvPhysicsNode(EnvAbstractNode n)
Method Detail

setMass

public void setMass(double mass)

setGravity

public void setGravity(double x,
                       double y,
                       double z)

setRestitution

public void setRestitution(double r)

setFriction

public void setFriction(double f)

setLinearVelocity

public void setLinearVelocity(double x,
                              double y,
                              double z)

setX

public void setX(double x)
Overrides:
setX in class EnvAbstractNode
Parameters:
x - the x to set

setY

public void setY(double y)
Overrides:
setY in class EnvAbstractNode
Parameters:
y - the y to set

setZ

public void setZ(double z)
Overrides:
setZ in class EnvAbstractNode
Parameters:
z - the z to set

setScale

public void setScale(double x,
                     double y,
                     double z)

setScale

public void setScale(double scale)
Overrides:
setScale in class EnvAbstractNode
Parameters:
scale - the scale to set

setModel

public void setModel(java.lang.String model)
Overrides:
setModel in class EnvNode

getLocation

public com.jme3.math.Vector3f getLocation()

setLocation

public void setLocation(double x,
                        double y,
                        double z)

getRotateX

public double getRotateX()
Overrides:
getRotateX in class EnvAbstractNode
Returns:
the rotateX

getRotateY

public double getRotateY()
Overrides:
getRotateY in class EnvAbstractNode
Returns:
the rotateY

getRotateZ

public double getRotateZ()
Overrides:
getRotateZ in class EnvAbstractNode
Returns:
the rotateZ

setCollisionShape

public void setCollisionShape(com.jme3.bullet.collision.shapes.CollisionShape s)

getControl

public com.jme3.bullet.control.RigidBodyControl getControl()
Returns:
the control