com.bulletphysics.collision.shapes
Class ScaledBvhTriangleMeshShape
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConcaveShape
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'.
ScaledBvhTriangleMeshShape
public ScaledBvhTriangleMeshShape(BvhTriangleMeshShape childShape,
Vector3f localScaling)
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