com.jme3.bullet.collision.shapes
Class CollisionShape
java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
- All Implemented Interfaces:
- Savable
- Direct Known Subclasses:
- BoxCollisionShape, CapsuleCollisionShape, CompoundCollisionShape, ConeCollisionShape, CylinderCollisionShape, GImpactCollisionShape, HeightfieldCollisionShape, HullCollisionShape, MeshCollisionShape, PlaneCollisionShape, SimplexCollisionShape, SphereCollisionShape
public abstract class CollisionShape
- extends java.lang.Object
- implements Savable
This Object holds information about a jbullet CollisionShape to be able to reuse
CollisionShapes (as suggested in bullet manuals)
TODO: add static methods to create shapes from nodes (like jbullet-jme constructor)
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objectId
protected long objectId
scale
protected Vector3f scale
margin
protected float margin
CollisionShape
public CollisionShape()
getObjectId
public long getObjectId()
- used internally
setObjectId
public void setObjectId(long id)
- used internally
setScale
public void setScale(Vector3f scale)
getScale
public Vector3f getScale()
getMargin
public float getMargin()
setMargin
public void setMargin(float margin)
write
public void write(JmeExporter ex)
throws java.io.IOException
- Specified by:
write
in interface Savable
- Throws:
java.io.IOException
read
public void read(JmeImporter im)
throws java.io.IOException
- Specified by:
read
in interface Savable
- Throws:
java.io.IOException
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class java.lang.Object
- Throws:
java.lang.Throwable