com.bulletphysics.collision.shapes
Class TriangleMeshShape

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

public abstract class TriangleMeshShape
extends ConcaveShape


Field Summary
protected  javax.vecmath.Vector3f localAabbMax
           
protected  javax.vecmath.Vector3f localAabbMin
           
protected  StridingMeshInterface meshInterface
           
 
Fields inherited from class com.bulletphysics.collision.shapes.ConcaveShape
collisionMargin
 
Constructor Summary
protected TriangleMeshShape(StridingMeshInterface meshInterface)
          TriangleMeshShape constructor has been disabled/protected, so that users will not mistakenly use this class.
 
Method Summary
 void calculateLocalInertia(float mass, javax.vecmath.Vector3f inertia)
           
 void getAabb(Transform trans, javax.vecmath.Vector3f aabbMin, javax.vecmath.Vector3f aabbMax)
           
 javax.vecmath.Vector3f getLocalScaling(javax.vecmath.Vector3f out)
           
 StridingMeshInterface getMeshInterface()
           
 java.lang.String getName()
           
 javax.vecmath.Vector3f localGetSupportingVertex(javax.vecmath.Vector3f vec, javax.vecmath.Vector3f out)
           
 javax.vecmath.Vector3f localGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f vec, javax.vecmath.Vector3f out)
           
 void processAllTriangles(TriangleCallback callback, javax.vecmath.Vector3f aabbMin, javax.vecmath.Vector3f aabbMax)
           
 void recalcLocalAabb()
           
 void setLocalScaling(javax.vecmath.Vector3f scaling)
           
 
Methods inherited from class com.bulletphysics.collision.shapes.ConcaveShape
getMargin, setMargin
 
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape
calculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getShapeType, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localAabbMin

protected final javax.vecmath.Vector3f localAabbMin

localAabbMax

protected final javax.vecmath.Vector3f localAabbMax

meshInterface

protected StridingMeshInterface meshInterface
Constructor Detail

TriangleMeshShape

protected TriangleMeshShape(StridingMeshInterface meshInterface)
TriangleMeshShape constructor has been disabled/protected, so that users will not mistakenly use this class. Don't use btTriangleMeshShape but use btBvhTriangleMeshShape instead!

Method Detail

localGetSupportingVertex

public javax.vecmath.Vector3f localGetSupportingVertex(javax.vecmath.Vector3f vec,
                                                       javax.vecmath.Vector3f out)

localGetSupportingVertexWithoutMargin

public javax.vecmath.Vector3f localGetSupportingVertexWithoutMargin(javax.vecmath.Vector3f vec,
                                                                    javax.vecmath.Vector3f out)

recalcLocalAabb

public void recalcLocalAabb()

getAabb

public void getAabb(Transform trans,
                    javax.vecmath.Vector3f aabbMin,
                    javax.vecmath.Vector3f aabbMax)
Specified by:
getAabb in class CollisionShape

processAllTriangles

public void processAllTriangles(TriangleCallback callback,
                                javax.vecmath.Vector3f aabbMin,
                                javax.vecmath.Vector3f aabbMax)
Specified by:
processAllTriangles in class ConcaveShape

calculateLocalInertia

public void calculateLocalInertia(float mass,
                                  javax.vecmath.Vector3f inertia)
Specified by:
calculateLocalInertia in class CollisionShape

setLocalScaling

public void setLocalScaling(javax.vecmath.Vector3f scaling)
Specified by:
setLocalScaling in class CollisionShape

getLocalScaling

public javax.vecmath.Vector3f getLocalScaling(javax.vecmath.Vector3f out)
Specified by:
getLocalScaling in class CollisionShape

getMeshInterface

public StridingMeshInterface getMeshInterface()

getName

public java.lang.String getName()
Specified by:
getName in class CollisionShape