hmi.physics.ode
Class OdeCollisionBox
java.lang.Object
hmi.physics.CollisionBox
hmi.physics.ode.OdeCollisionBox
- All Implemented Interfaces:
- CollisionShape, OdeCollisionShape
public class OdeCollisionBox
- extends CollisionBox
- implements OdeCollisionShape
|
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()
|
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
OdeCollisionBox
public OdeCollisionBox(String n)
OdeCollisionBox
public OdeCollisionBox(float[] hExtends,
String n)
OdeCollisionBox
public OdeCollisionBox(float[] q,
float[] tr,
float[] hExtends,
String n)
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