hmi.physics.ode
Class OdeCollisionCapsule
java.lang.Object
hmi.physics.CollisionCapsule
hmi.physics.ode.OdeCollisionCapsule
- All Implemented Interfaces:
- CollisionShape, OdeCollisionShape
public class OdeCollisionCapsule
- extends CollisionCapsule
- implements OdeCollisionShape
|
Field Summary |
org.odejava.GeomCapsule |
capsule
|
private org.odejava.GeomTransform |
g1
|
private org.odejava.GeomTransform |
g2
|
private org.slf4j.Logger |
logger
|
String |
name
|
org.odejava.PlaceableGeom |
root
|
logger
private org.slf4j.Logger logger
capsule
public org.odejava.GeomCapsule capsule
root
public org.odejava.PlaceableGeom root
name
public String name
g2
private org.odejava.GeomTransform g2
g1
private org.odejava.GeomTransform g1
OdeCollisionCapsule
public OdeCollisionCapsule(String n)
OdeCollisionCapsule
public OdeCollisionCapsule(float r,
float h,
String n)
OdeCollisionCapsule
public OdeCollisionCapsule(float[] q,
float[] tr,
float r,
float h,
String n)
createCapsule
private void createCapsule()
setRotation
public void setRotation(float[] q)
- Specified by:
setRotation in interface CollisionShape- Overrides:
setRotation in class CollisionCapsule
setTranslation
public void setTranslation(float[] v)
- Specified by:
setTranslation in interface CollisionShape- Overrides:
setTranslation in class CollisionCapsule
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
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