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

Concave triangle mesh abstract class. Use BvhTriangleMeshShape as concrete implementation.


Method Summary
 void calculateLocalInertia(float mass, Vector3f inertia)
           
 void getAabb(Transform trans, Vector3f aabbMin, Vector3f aabbMax)
           
 Vector3f getLocalAabbMax(Vector3f out)
           
 Vector3f getLocalAabbMin(Vector3f out)
           
 Vector3f getLocalScaling(Vector3f out)
           
 StridingMeshInterface getMeshInterface()
           
 String getName()
           
 Vector3f localGetSupportingVertex(Vector3f vec, Vector3f out)
           
 Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec, Vector3f out)
           
 void processAllTriangles(TriangleCallback callback, Vector3f aabbMin, Vector3f aabbMax)
           
 void recalcLocalAabb()
           
 void setLocalScaling(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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

localGetSupportingVertex

public Vector3f localGetSupportingVertex(Vector3f vec,
                                         Vector3f out)

localGetSupportingVertexWithoutMargin

public Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec,
                                                      Vector3f out)

recalcLocalAabb

public void recalcLocalAabb()

getAabb

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

processAllTriangles

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

calculateLocalInertia

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

setLocalScaling

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

getLocalScaling

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

getMeshInterface

public StridingMeshInterface getMeshInterface()

getLocalAabbMin

public Vector3f getLocalAabbMin(Vector3f out)

getLocalAabbMax

public Vector3f getLocalAabbMax(Vector3f out)

getName

public String getName()
Specified by:
getName in class CollisionShape