|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConcaveShape
com.bulletphysics.extras.gimpact.GImpactShapeInterface
com.bulletphysics.extras.gimpact.GImpactMeshShape
public class GImpactMeshShape
| Constructor Summary | |
|---|---|
GImpactMeshShape(StridingMeshInterface meshInterface)
|
|
| Method Summary | |
|---|---|
void |
calculateLocalInertia(float mass,
Vector3f inertia)
|
void |
getBulletTriangle(int prim_index,
TriangleShapeEx triangle)
|
void |
getChildAabb(int child_index,
Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
Retrieves the bound from a child. |
CollisionShape |
getChildShape(int index)
Gets the children. |
Transform |
getChildTransform(int index)
Gets the children transform. |
GImpactMeshShapePart |
getMeshPart(int index)
|
int |
getMeshPartCount()
|
String |
getName()
|
int |
getNumChildShapes()
Gets the number of children. |
boolean |
childrenHasTransform()
If true, then its children must get transforms. |
void |
lockChildShapes()
Call when reading child shapes. |
boolean |
needsRetrieveTetrahedrons()
Determines if this shape has tetrahedrons. |
boolean |
needsRetrieveTriangles()
Determines if this shape has triangles. |
void |
postUpdate()
Tells to this object that is needed to refit the box set. |
void |
processAllTriangles(TriangleCallback callback,
Vector3f aabbMin,
Vector3f aabbMax)
Function for retrieve triangles. |
void |
rayTest(Vector3f rayFrom,
Vector3f rayTo,
CollisionWorld.RayResultCallback resultCallback)
Virtual method for ray collision. |
void |
setChildTransform(int index,
Transform transform)
Sets the children transform. |
void |
setLocalScaling(Vector3f scaling)
You must call updateBound() for update the box set. |
void |
setMargin(float margin)
|
void |
unlockChildShapes()
|
| Methods inherited from class com.bulletphysics.extras.gimpact.GImpactShapeInterface |
|---|
getAabb, getLocalBox, getLocalScaling, getShapeType, hasBoxSet, updateBound |
| Methods inherited from class com.bulletphysics.collision.shapes.ConcaveShape |
|---|
getMargin |
| 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 GImpactMeshShape(StridingMeshInterface meshInterface)
| Method Detail |
|---|
public int getMeshPartCount()
public GImpactMeshShapePart getMeshPart(int index)
public void setLocalScaling(Vector3f scaling)
GImpactShapeInterface
setLocalScaling in class GImpactShapeInterfacepublic void setMargin(float margin)
setMargin in class GImpactShapeInterfacepublic void postUpdate()
GImpactShapeInterface
postUpdate in class GImpactShapeInterface
public void calculateLocalInertia(float mass,
Vector3f inertia)
calculateLocalInertia in class CollisionShapepublic int getNumChildShapes()
GImpactShapeInterface
getNumChildShapes in class GImpactShapeInterfacepublic boolean childrenHasTransform()
GImpactShapeInterface
childrenHasTransform in class GImpactShapeInterfacepublic boolean needsRetrieveTriangles()
GImpactShapeInterface
needsRetrieveTriangles in class GImpactShapeInterfacepublic boolean needsRetrieveTetrahedrons()
GImpactShapeInterface
needsRetrieveTetrahedrons in class GImpactShapeInterface
public void getBulletTriangle(int prim_index,
TriangleShapeEx triangle)
getBulletTriangle in class GImpactShapeInterfacepublic void lockChildShapes()
GImpactShapeInterface
lockChildShapes in class GImpactShapeInterfacepublic void unlockChildShapes()
unlockChildShapes in class GImpactShapeInterface
public void getChildAabb(int child_index,
Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
GImpactShapeInterface
getChildAabb in class GImpactShapeInterfacepublic CollisionShape getChildShape(int index)
GImpactShapeInterface
getChildShape in class GImpactShapeInterfacepublic Transform getChildTransform(int index)
GImpactShapeInterface
getChildTransform in class GImpactShapeInterface
public void setChildTransform(int index,
Transform transform)
GImpactShapeInterfaceYou must call updateBound() for update the box set.
setChildTransform in class GImpactShapeInterfacepublic String getName()
getName in class CollisionShape
public void rayTest(Vector3f rayFrom,
Vector3f rayTo,
CollisionWorld.RayResultCallback resultCallback)
GImpactShapeInterface
rayTest in class GImpactShapeInterface
public void processAllTriangles(TriangleCallback callback,
Vector3f aabbMin,
Vector3f aabbMax)
GImpactShapeInterface
processAllTriangles in class GImpactShapeInterface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||