hmi.physics.ode
Class OdeCollisionSphere
java.lang.Object
hmi.physics.CollisionSphere
hmi.physics.ode.OdeCollisionSphere
- All Implemented Interfaces:
- CollisionShape, OdeCollisionShape
public class OdeCollisionSphere
- extends CollisionSphere
- implements OdeCollisionShape
|
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()
|
logger
private org.slf4j.Logger logger
sphere
public org.odejava.GeomSphere sphere
root
public org.odejava.PlaceableGeom root
name
public String name
OdeCollisionSphere
public OdeCollisionSphere(String n)
OdeCollisionSphere
public OdeCollisionSphere(float r,
String n)
OdeCollisionSphere
public OdeCollisionSphere(float[] tr,
float r,
String n)
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