com.bulletphysics.collision.shapes
Class ScaledBvhTriangleMeshShape

java.lang.Object
  extended by com.bulletphysics.collision.shapes.CollisionShape
      extended by com.bulletphysics.collision.shapes.ConcaveShape
          extended by com.bulletphysics.collision.shapes.ScaledBvhTriangleMeshShape

public class ScaledBvhTriangleMeshShape
extends ConcaveShape

The ScaledBvhTriangleMeshShape allows to instance a scaled version of an existing BvhTriangleMeshShape. Note that each BvhTriangleMeshShape still can have its own local scaling, independent from this ScaledBvhTriangleMeshShape 'localScaling'.


Constructor Summary
ScaledBvhTriangleMeshShape(BvhTriangleMeshShape childShape, Vector3f localScaling)
           
 
Method Summary
 void calculateLocalInertia(float mass, Vector3f inertia)
           
 void getAabb(Transform trans, Vector3f aabbMin, Vector3f aabbMax)
           
 BvhTriangleMeshShape getChildShape()
           
 Vector3f getLocalScaling(Vector3f out)
           
 String getName()
           
 BroadphaseNativeType getShapeType()
           
 void processAllTriangles(TriangleCallback callback, Vector3f aabbMin, Vector3f aabbMax)
           
 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, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScaledBvhTriangleMeshShape

public ScaledBvhTriangleMeshShape(BvhTriangleMeshShape childShape,
                                  Vector3f localScaling)
Method Detail

getChildShape

public BvhTriangleMeshShape getChildShape()

processAllTriangles

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

getAabb

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

getShapeType

public BroadphaseNativeType getShapeType()
Specified by:
getShapeType 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

calculateLocalInertia

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

getName

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