|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bulletphysics.collision.shapes.CollisionShape com.bulletphysics.collision.shapes.CompoundShape
public class CompoundShape
CompoundShape allows to store multiple other CollisionShape
s. This allows
for moving concave collision objects. This is more general than the BvhTriangleMeshShape
.
Constructor Summary | |
---|---|
CompoundShape()
|
Method Summary | |
---|---|
void |
addChildShape(Transform localTransform,
CollisionShape shape)
|
void |
calculateLocalInertia(float mass,
Vector3f inertia)
|
void |
calculatePrincipalAxisTransform(float[] masses,
Transform principal,
Vector3f inertia)
Computes the exact moment of inertia and the transform from the coordinate system defined by the principal axes of the moment of inertia and the center of mass to the current coordinate system. |
void |
getAabb(Transform trans,
Vector3f aabbMin,
Vector3f aabbMax)
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version. |
OptimizedBvh |
getAabbTree()
|
ObjectArrayList<CompoundShapeChild> |
getChildList()
|
CollisionShape |
getChildShape(int index)
|
Transform |
getChildTransform(int index,
Transform out)
|
Vector3f |
getLocalScaling(Vector3f out)
|
float |
getMargin()
|
String |
getName()
|
int |
getNumChildShapes()
|
BroadphaseNativeType |
getShapeType()
|
void |
recalculateLocalAabb()
Re-calculate the local Aabb. |
void |
removeChildShape(CollisionShape shape)
Remove all children shapes that contain the specified shape. |
void |
setLocalScaling(Vector3f scaling)
|
void |
setMargin(float margin)
|
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 |
---|
public CompoundShape()
Method Detail |
---|
public void addChildShape(Transform localTransform, CollisionShape shape)
public void removeChildShape(CollisionShape shape)
public int getNumChildShapes()
public CollisionShape getChildShape(int index)
public Transform getChildTransform(int index, Transform out)
public ObjectArrayList<CompoundShapeChild> getChildList()
public void getAabb(Transform trans, Vector3f aabbMin, Vector3f aabbMax)
getAabb
in class CollisionShape
public void recalculateLocalAabb()
public void setLocalScaling(Vector3f scaling)
setLocalScaling
in class CollisionShape
public Vector3f getLocalScaling(Vector3f out)
getLocalScaling
in class CollisionShape
public void calculateLocalInertia(float mass, Vector3f inertia)
calculateLocalInertia
in class CollisionShape
public BroadphaseNativeType getShapeType()
getShapeType
in class CollisionShape
public void setMargin(float margin)
setMargin
in class CollisionShape
public float getMargin()
getMargin
in class CollisionShape
public String getName()
getName
in class CollisionShape
public OptimizedBvh getAabbTree()
public void calculatePrincipalAxisTransform(float[] masses, Transform principal, Vector3f inertia)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |