|
|||||||||
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
public abstract class GImpactShapeInterface
Base class for gimpact shapes.
Constructor Summary | |
---|---|
GImpactShapeInterface()
|
Method Summary | |
---|---|
void |
getAabb(Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
If the Bounding box is not updated, then this class attemps to calculate it. |
abstract void |
getBulletTriangle(int prim_index,
TriangleShapeEx triangle)
|
void |
getChildAabb(int child_index,
Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
Retrieves the bound from a child. |
abstract CollisionShape |
getChildShape(int index)
Gets the children. |
abstract Transform |
getChildTransform(int index)
Gets the children transform. |
com.bulletphysics.extras.gimpact.BoxCollision.AABB |
getLocalBox(com.bulletphysics.extras.gimpact.BoxCollision.AABB out)
Obtains the local box, which is the global calculated box of the total of subshapes. |
Vector3f |
getLocalScaling(Vector3f out)
|
abstract int |
getNumChildShapes()
Gets the number of children. |
BroadphaseNativeType |
getShapeType()
|
boolean |
hasBoxSet()
Determines if this class has a hierarchy structure for sorting its primitives. |
abstract boolean |
childrenHasTransform()
If true, then its children must get transforms. |
void |
lockChildShapes()
Call when reading child shapes. |
abstract boolean |
needsRetrieveTetrahedrons()
Determines if this shape has tetrahedrons. |
abstract 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. |
abstract 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()
|
void |
updateBound()
Performs refit operation. |
Methods inherited from class com.bulletphysics.collision.shapes.ConcaveShape |
---|
getMargin |
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape |
---|
calculateLocalInertia, calculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getName, 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 GImpactShapeInterface()
Method Detail |
---|
public void updateBound()
Updates the entire Box set of this shape.
postUpdate() must be called for attemps to calculating the box set, else this function will does nothing.
if m_needs_update == true, then it calls calcLocalAABB();
public void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
Calls updateBound() for update the box set.
getAabb
in class CollisionShape
public void postUpdate()
public com.bulletphysics.extras.gimpact.BoxCollision.AABB getLocalBox(com.bulletphysics.extras.gimpact.BoxCollision.AABB out)
public BroadphaseNativeType getShapeType()
getShapeType
in class CollisionShape
public void setLocalScaling(Vector3f scaling)
setLocalScaling
in class CollisionShape
public Vector3f getLocalScaling(Vector3f out)
getLocalScaling
in class CollisionShape
public void setMargin(float margin)
setMargin
in class ConcaveShape
public boolean hasBoxSet()
public abstract int getNumChildShapes()
public abstract boolean childrenHasTransform()
public abstract boolean needsRetrieveTriangles()
public abstract boolean needsRetrieveTetrahedrons()
public abstract void getBulletTriangle(int prim_index, TriangleShapeEx triangle)
public void lockChildShapes()
public void unlockChildShapes()
public void getChildAabb(int child_index, Transform t, Vector3f aabbMin, Vector3f aabbMax)
public abstract CollisionShape getChildShape(int index)
public abstract Transform getChildTransform(int index)
public abstract void setChildTransform(int index, Transform transform)
You must call updateBound() for update the box set.
public void rayTest(Vector3f rayFrom, Vector3f rayTo, CollisionWorld.RayResultCallback resultCallback)
public void processAllTriangles(TriangleCallback callback, Vector3f aabbMin, Vector3f aabbMax)
processAllTriangles
in class ConcaveShape
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |