hmi.physics.ode
Class OdeCollisionSphere

java.lang.Object
  extended by hmi.physics.CollisionSphere
      extended by hmi.physics.ode.OdeCollisionSphere
All Implemented Interfaces:
CollisionShape, OdeCollisionShape

public class OdeCollisionSphere
extends CollisionSphere
implements OdeCollisionShape


Field Summary
private  org.slf4j.Logger logger
           
 String name
           
 org.odejava.PlaceableGeom root
           
 org.odejava.GeomSphere sphere
           
 
Fields inherited from class hmi.physics.CollisionSphere
radius, translation
 
Constructor Summary
OdeCollisionSphere(float[] tr, float r, String n)
           
OdeCollisionSphere(float r, String n)
           
OdeCollisionSphere(String n)
           
 
Method Summary
private  void createSphere()
           
 org.odejava.PlaceableGeom getCollisionGeom()
          Get the collision geom, that is, the Geom that actually can collide with stuff in the world
 org.odejava.PlaceableGeom getRoot()
          Get the root geom, that is, the geom that is connected to the rigid body
 void setBodyName(String bodyName)
          Update the body part of the name of this object
 void setTranslation(float[] v)
           
 String toString()
           
 
Methods inherited from class hmi.physics.CollisionSphere
getRotation, getTranslation, setRotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

private org.slf4j.Logger logger

sphere

public org.odejava.GeomSphere sphere

root

public org.odejava.PlaceableGeom root

name

public String name
Constructor Detail

OdeCollisionSphere

public OdeCollisionSphere(String n)

OdeCollisionSphere

public OdeCollisionSphere(float r,
                          String n)

OdeCollisionSphere

public OdeCollisionSphere(float[] tr,
                          float r,
                          String n)
Method Detail

createSphere

private void createSphere()

getCollisionGeom

public org.odejava.PlaceableGeom getCollisionGeom()
Description copied from interface: OdeCollisionShape
Get the collision geom, that is, the Geom that actually can collide with stuff in the world

Specified by:
getCollisionGeom in interface OdeCollisionShape

getRoot

public org.odejava.PlaceableGeom getRoot()
Description copied from interface: OdeCollisionShape
Get the root geom, that is, the geom that is connected to the rigid body

Specified by:
getRoot in interface OdeCollisionShape

toString

public String toString()
Overrides:
toString in class Object

setTranslation

public void setTranslation(float[] v)
Specified by:
setTranslation in interface CollisionShape
Overrides:
setTranslation in class CollisionSphere

setBodyName

public void setBodyName(String bodyName)
Description copied from interface: OdeCollisionShape
Update the body part of the name of this object

Specified by:
setBodyName in interface OdeCollisionShape