|
|||||||||
| 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.GImpactMeshShapePart
public class GImpactMeshShapePart
This class manages a sub part of a mesh supplied by the StridingMeshInterface interface.
- Simply create this shape by passing the StridingMeshInterface to the constructor
GImpactMeshShapePart, then you must call updateBound() after creating the mesh
- When making operations with this shape, you must call lock before accessing
to the trimesh primitives, and then call unlock
- You can handle deformable meshes with this shape, by calling postUpdate() every time
when changing the mesh vertices.
| Constructor Summary | |
|---|---|
GImpactMeshShapePart()
|
|
GImpactMeshShapePart(StridingMeshInterface meshInterface,
int part)
|
|
| Method Summary | |
|---|---|
void |
calculateLocalInertia(float mass,
Vector3f inertia)
|
void |
getBulletTriangle(int prim_index,
TriangleShapeEx triangle)
|
CollisionShape |
getChildShape(int index)
Gets the children. |
Transform |
getChildTransform(int index)
Gets the children transform. |
Vector3f |
getLocalScaling(Vector3f out)
|
float |
getMargin()
|
String |
getName()
|
int |
getNumChildShapes()
Gets the number of children. |
int |
getPart()
|
void |
getVertex(int vertex_index,
Vector3f vertex)
|
int |
getVertexCount()
|
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 |
processAllTriangles(TriangleCallback callback,
Vector3f aabbMin,
Vector3f aabbMax)
Function for retrieve triangles. |
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, getChildAabb, getLocalBox, getShapeType, hasBoxSet, postUpdate, rayTest, updateBound |
| 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 GImpactMeshShapePart()
public GImpactMeshShapePart(StridingMeshInterface meshInterface,
int part)
| Method Detail |
|---|
public boolean childrenHasTransform()
GImpactShapeInterface
childrenHasTransform in class GImpactShapeInterfacepublic void lockChildShapes()
GImpactShapeInterface
lockChildShapes in class GImpactShapeInterfacepublic void unlockChildShapes()
unlockChildShapes in class GImpactShapeInterfacepublic int getNumChildShapes()
GImpactShapeInterface
getNumChildShapes 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 GImpactShapeInterface
public void calculateLocalInertia(float mass,
Vector3f inertia)
calculateLocalInertia in class CollisionShapepublic String getName()
getName in class CollisionShapepublic 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 int getVertexCount()
public void getVertex(int vertex_index,
Vector3f vertex)
public void setMargin(float margin)
setMargin in class GImpactShapeInterfacepublic float getMargin()
getMargin in class ConcaveShapepublic void setLocalScaling(Vector3f scaling)
GImpactShapeInterface
setLocalScaling in class GImpactShapeInterfacepublic Vector3f getLocalScaling(Vector3f out)
getLocalScaling in class GImpactShapeInterfacepublic int getPart()
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 | ||||||||