com.bulletphysics.collision.shapes
Class ConcaveShape

java.lang.Object
  extended by com.bulletphysics.collision.shapes.CollisionShape
      extended by com.bulletphysics.collision.shapes.ConcaveShape
Direct Known Subclasses:
StaticPlaneShape, TriangleMeshShape

public abstract class ConcaveShape
extends CollisionShape

Concave shape proves an interface concave shapes that can produce triangles that overlapping a given AABB. Static triangle mesh, infinite plane, height field/landscapes are example that implement this interface.


Field Summary
protected  float collisionMargin
           
 
Constructor Summary
ConcaveShape()
           
 
Method Summary
 float getMargin()
           
abstract  void processAllTriangles(TriangleCallback callback, javax.vecmath.Vector3f aabbMin, javax.vecmath.Vector3f aabbMax)
           
 void setMargin(float margin)
           
 
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape
calculateLocalInertia, calculateTemporalAabb, getAabb, getAngularMotionDisc, getBoundingSphere, getLocalScaling, getName, getShapeType, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setLocalScaling, setUserPointer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collisionMargin

protected float collisionMargin
Constructor Detail

ConcaveShape

public ConcaveShape()
Method Detail

processAllTriangles

public abstract void processAllTriangles(TriangleCallback callback,
                                         javax.vecmath.Vector3f aabbMin,
                                         javax.vecmath.Vector3f aabbMax)

getMargin

public float getMargin()
Specified by:
getMargin in class CollisionShape

setMargin

public void setMargin(float margin)
Specified by:
setMargin in class CollisionShape