hmi.physics.ode
Class OdeCollisionCapsule

java.lang.Object
  extended by hmi.physics.CollisionCapsule
      extended by 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
           
 
Fields inherited from class hmi.physics.CollisionCapsule
height, radius, rotation, translation
 
Constructor Summary
OdeCollisionCapsule(float[] q, float[] tr, float r, float h, String n)
           
OdeCollisionCapsule(float r, float h, String n)
           
OdeCollisionCapsule(String n)
           
 
Method Summary
private  void createCapsule()
           
 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.CollisionCapsule
getRotation, getTranslation
 
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

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
Constructor Detail

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)
Method Detail

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