com.jme3.bullet.collision.shapes
Class CollisionShape

java.lang.Object
  extended by 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)


Field Summary
protected  float margin
           
protected  long objectId
           
protected  Vector3f scale
           
 
Constructor Summary
CollisionShape()
           
 
Method Summary
protected  void finalize()
           
 float getMargin()
           
 long getObjectId()
          used internally
 Vector3f getScale()
           
 void read(JmeImporter im)
           
 void setMargin(float margin)
           
 void setObjectId(long id)
          used internally
 void setScale(Vector3f scale)
           
 void write(JmeExporter ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectId

protected long objectId

scale

protected Vector3f scale

margin

protected float margin
Constructor Detail

CollisionShape

public CollisionShape()
Method Detail

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