hmi.physics.ode
Class OdeCollisionBox

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

public class OdeCollisionBox
extends CollisionBox
implements OdeCollisionShape


Field Summary
 org.odejava.GeomBox box
           
private  org.slf4j.Logger logger
           
 String name
           
 org.odejava.PlaceableGeom root
           
private  org.odejava.GeomTransform transform
           
 
Fields inherited from class hmi.physics.CollisionBox
halfExtends, rotation, translation
 
Constructor Summary
OdeCollisionBox(float[] q, float[] tr, float[] hExtends, String n)
           
OdeCollisionBox(float[] hExtends, String n)
           
OdeCollisionBox(String n)
           
 
Method Summary
private  void createBox()
           
 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 setRotation(float[] q)
           
 void setTranslation(float[] v)
           
 String toString()
           
 
Methods inherited from class hmi.physics.CollisionBox
getRotation, getTranslation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

box

public org.odejava.GeomBox box

root

public org.odejava.PlaceableGeom root

name

public String name

transform

private org.odejava.GeomTransform transform

logger

private org.slf4j.Logger logger
Constructor Detail

OdeCollisionBox

public OdeCollisionBox(String n)

OdeCollisionBox

public OdeCollisionBox(float[] hExtends,
                       String n)

OdeCollisionBox

public OdeCollisionBox(float[] q,
                       float[] tr,
                       float[] hExtends,
                       String n)
Method Detail

createBox

private void createBox()

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

setRotation

public void setRotation(float[] q)
Specified by:
setRotation in interface CollisionShape
Overrides:
setRotation in class CollisionBox

setTranslation

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

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