public class GImpactMeshShape extends GImpactShapeInterface
| Constructor and Description |
|---|
GImpactMeshShape(StridingMeshInterface meshInterface) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateLocalInertia(float mass,
Vector3f inertia) |
boolean |
childrenHasTransform()
If true, then its children must get transforms.
|
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.
|
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() |
getAabb, getLocalBox, getLocalScaling, getShapeType, hasBoxSet, updateBoundgetMargincalculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointerpublic GImpactMeshShape(StridingMeshInterface meshInterface)
public int getMeshPartCount()
public GImpactMeshShapePart getMeshPart(int index)
public void setLocalScaling(Vector3f scaling)
GImpactShapeInterfacesetLocalScaling in class GImpactShapeInterfacepublic void setMargin(float margin)
setMargin in class GImpactShapeInterfacepublic void postUpdate()
GImpactShapeInterfacepostUpdate in class GImpactShapeInterfacepublic void calculateLocalInertia(float mass,
Vector3f inertia)
calculateLocalInertia in class CollisionShapepublic int getNumChildShapes()
GImpactShapeInterfacegetNumChildShapes in class GImpactShapeInterfacepublic boolean childrenHasTransform()
GImpactShapeInterfacechildrenHasTransform in class GImpactShapeInterfacepublic boolean needsRetrieveTriangles()
GImpactShapeInterfaceneedsRetrieveTriangles in class GImpactShapeInterfacepublic boolean needsRetrieveTetrahedrons()
GImpactShapeInterfaceneedsRetrieveTetrahedrons in class GImpactShapeInterfacepublic void getBulletTriangle(int prim_index,
TriangleShapeEx triangle)
getBulletTriangle in class GImpactShapeInterfacepublic void lockChildShapes()
GImpactShapeInterfacelockChildShapes in class GImpactShapeInterfacepublic void unlockChildShapes()
unlockChildShapes in class GImpactShapeInterfacepublic void getChildAabb(int child_index,
Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
GImpactShapeInterfacegetChildAabb in class GImpactShapeInterfacepublic CollisionShape getChildShape(int index)
GImpactShapeInterfacegetChildShape in class GImpactShapeInterfacepublic Transform getChildTransform(int index)
GImpactShapeInterfacegetChildTransform in class GImpactShapeInterfacepublic void setChildTransform(int index,
Transform transform)
GImpactShapeInterfaceYou must call updateBound() for update the box set.
setChildTransform in class GImpactShapeInterfacepublic String getName()
getName in class CollisionShapepublic void rayTest(Vector3f rayFrom, Vector3f rayTo, CollisionWorld.RayResultCallback resultCallback)
GImpactShapeInterfacerayTest in class GImpactShapeInterfacepublic void processAllTriangles(TriangleCallback callback, Vector3f aabbMin, Vector3f aabbMax)
GImpactShapeInterfaceprocessAllTriangles in class GImpactShapeInterface