|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bulletphysics.collision.dispatch.CollisionWorld
public class CollisionWorld
CollisionWorld is interface and container for the collision detection.
Nested Class Summary | |
---|---|
static class |
CollisionWorld.ClosestConvexResultCallback
|
static class |
CollisionWorld.ClosestRayResultCallback
|
static class |
CollisionWorld.ConvexResultCallback
|
static class |
CollisionWorld.LocalConvexResult
|
static class |
CollisionWorld.LocalRayResult
|
static class |
CollisionWorld.LocalShapeInfo
LocalShapeInfo gives extra information for complex shapes. |
static class |
CollisionWorld.RayResultCallback
RayResultCallback is used to report new raycast results. |
Constructor Summary | |
---|---|
CollisionWorld(Dispatcher dispatcher,
BroadphaseInterface broadphasePairCache,
CollisionConfiguration collisionConfiguration)
This constructor doesn't own the dispatcher and paircache/broadphase. |
Method Summary | |
---|---|
void |
addCollisionObject(CollisionObject collisionObject)
|
void |
addCollisionObject(CollisionObject collisionObject,
short collisionFilterGroup,
short collisionFilterMask)
|
void |
convexSweepTest(ConvexShape castShape,
Transform convexFromWorld,
Transform convexToWorld,
CollisionWorld.ConvexResultCallback resultCallback)
convexTest performs a swept convex cast on all objects in the CollisionWorld , and calls the resultCallback
This allows for several queries: first hit, all hits, any hit, dependent on the value return by the callback. |
void |
destroy()
|
BroadphaseInterface |
getBroadphase()
|
ObjectArrayList<CollisionObject> |
getCollisionObjectArray()
|
IDebugDraw |
getDebugDrawer()
|
Dispatcher |
getDispatcher()
|
DispatcherInfo |
getDispatchInfo()
|
int |
getNumCollisionObjects()
|
OverlappingPairCache |
getPairCache()
|
static void |
objectQuerySingle(ConvexShape castShape,
Transform convexFromTrans,
Transform convexToTrans,
CollisionObject collisionObject,
CollisionShape collisionShape,
Transform colObjWorldTransform,
CollisionWorld.ConvexResultCallback resultCallback,
float allowedPenetration)
objectQuerySingle performs a collision detection query and calls the resultCallback. |
void |
performDiscreteCollisionDetection()
|
void |
rayTest(Vector3f rayFromWorld,
Vector3f rayToWorld,
CollisionWorld.RayResultCallback resultCallback)
rayTest performs a raycast on all objects in the CollisionWorld, and calls the resultCallback. |
static void |
rayTestSingle(Transform rayFromTrans,
Transform rayToTrans,
CollisionObject collisionObject,
CollisionShape collisionShape,
Transform colObjWorldTransform,
CollisionWorld.RayResultCallback resultCallback)
|
void |
removeCollisionObject(CollisionObject collisionObject)
|
void |
setBroadphase(BroadphaseInterface pairCache)
|
void |
setDebugDrawer(IDebugDraw debugDrawer)
|
void |
updateAabbs()
|
void |
updateSingleAabb(CollisionObject colObj)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollisionWorld(Dispatcher dispatcher, BroadphaseInterface broadphasePairCache, CollisionConfiguration collisionConfiguration)
Method Detail |
---|
public void destroy()
public void addCollisionObject(CollisionObject collisionObject)
public void addCollisionObject(CollisionObject collisionObject, short collisionFilterGroup, short collisionFilterMask)
public void performDiscreteCollisionDetection()
public void removeCollisionObject(CollisionObject collisionObject)
public void setBroadphase(BroadphaseInterface pairCache)
public BroadphaseInterface getBroadphase()
public OverlappingPairCache getPairCache()
public Dispatcher getDispatcher()
public DispatcherInfo getDispatchInfo()
public void updateSingleAabb(CollisionObject colObj)
public void updateAabbs()
public IDebugDraw getDebugDrawer()
public void setDebugDrawer(IDebugDraw debugDrawer)
public int getNumCollisionObjects()
public static void rayTestSingle(Transform rayFromTrans, Transform rayToTrans, CollisionObject collisionObject, CollisionShape collisionShape, Transform colObjWorldTransform, CollisionWorld.RayResultCallback resultCallback)
public static void objectQuerySingle(ConvexShape castShape, Transform convexFromTrans, Transform convexToTrans, CollisionObject collisionObject, CollisionShape collisionShape, Transform colObjWorldTransform, CollisionWorld.ConvexResultCallback resultCallback, float allowedPenetration)
public void rayTest(Vector3f rayFromWorld, Vector3f rayToWorld, CollisionWorld.RayResultCallback resultCallback)
public void convexSweepTest(ConvexShape castShape, Transform convexFromWorld, Transform convexToWorld, CollisionWorld.ConvexResultCallback resultCallback)
CollisionWorld
, and calls the resultCallback
This allows for several queries: first hit, all hits, any hit, dependent on the value return by the callback.
public ObjectArrayList<CollisionObject> getCollisionObjectArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |