|
|||||||||
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.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 GImpactShapeInterface
public void lockChildShapes()
GImpactShapeInterface
lockChildShapes
in class GImpactShapeInterface
public void unlockChildShapes()
unlockChildShapes
in class GImpactShapeInterface
public int getNumChildShapes()
GImpactShapeInterface
getNumChildShapes
in class GImpactShapeInterface
public CollisionShape getChildShape(int index)
GImpactShapeInterface
getChildShape
in class GImpactShapeInterface
public Transform getChildTransform(int index)
GImpactShapeInterface
getChildTransform
in class GImpactShapeInterface
public void setChildTransform(int index, Transform transform)
GImpactShapeInterface
You must call updateBound() for update the box set.
setChildTransform
in class GImpactShapeInterface
public void calculateLocalInertia(float mass, Vector3f inertia)
calculateLocalInertia
in class CollisionShape
public String getName()
getName
in class CollisionShape
public boolean needsRetrieveTriangles()
GImpactShapeInterface
needsRetrieveTriangles
in class GImpactShapeInterface
public boolean needsRetrieveTetrahedrons()
GImpactShapeInterface
needsRetrieveTetrahedrons
in class GImpactShapeInterface
public void getBulletTriangle(int prim_index, TriangleShapeEx triangle)
getBulletTriangle
in class GImpactShapeInterface
public int getVertexCount()
public void getVertex(int vertex_index, Vector3f vertex)
public void setMargin(float margin)
setMargin
in class GImpactShapeInterface
public float getMargin()
getMargin
in class ConcaveShape
public void setLocalScaling(Vector3f scaling)
GImpactShapeInterface
setLocalScaling
in class GImpactShapeInterface
public Vector3f getLocalScaling(Vector3f out)
getLocalScaling
in class GImpactShapeInterface
public 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 |