Class: btCollisionWorld
Ammo.btCollisionWorld
Hierarchy
btCollisionWorld
Constructors
Methods
- getDispatcher
- rayTest
- getPairCache
- getDispatchInfo
- addCollisionObject
- removeCollisionObject
- getBroadphase
- convexSweepTest
- contactPairTest
- contactTest
- updateSingleAabb
- setDebugDrawer
- getDebugDrawer
- debugDrawWorld
- debugDrawObject
Constructors
constructor
• new btCollisionWorld(): btCollisionWorld
Returns
Methods
getDispatcher
▸ getDispatcher(): btDispatcher
Returns
Defined in
rayTest
▸ rayTest(rayFromWorld
, rayToWorld
, resultCallback
): void
Parameters
Name | Type |
---|---|
rayFromWorld | btVector3 |
rayToWorld | btVector3 |
resultCallback | RayResultCallback |
Returns
void
Defined in
getPairCache
▸ getPairCache(): btOverlappingPairCache
Returns
Defined in
getDispatchInfo
▸ getDispatchInfo(): btDispatcherInfo
Returns
Defined in
addCollisionObject
▸ addCollisionObject(collisionObject
, collisionFilterGroup?
, collisionFilterMask?
): void
Parameters
Name | Type |
---|---|
collisionObject | btCollisionObject |
collisionFilterGroup? | number |
collisionFilterMask? | number |
Returns
void
Defined in
removeCollisionObject
▸ removeCollisionObject(collisionObject
): void
Parameters
Name | Type |
---|---|
collisionObject | btCollisionObject |
Returns
void
Defined in
getBroadphase
▸ getBroadphase(): btBroadphaseInterface
Returns
Defined in
convexSweepTest
▸ convexSweepTest(castShape
, from
, to
, resultCallback
, allowedCcdPenetration
): void
Parameters
Name | Type |
---|---|
castShape | btConvexShape |
from | btTransform |
to | btTransform |
resultCallback | ConvexResultCallback |
allowedCcdPenetration | number |
Returns
void
Defined in
contactPairTest
▸ contactPairTest(colObjA
, colObjB
, resultCallback
): void
Parameters
Name | Type |
---|---|
colObjA | btCollisionObject |
colObjB | btCollisionObject |
resultCallback | ContactResultCallback |
Returns
void
Defined in
contactTest
▸ contactTest(colObj
, resultCallback
): void
Parameters
Name | Type |
---|---|
colObj | btCollisionObject |
resultCallback | ContactResultCallback |
Returns
void
Defined in
updateSingleAabb
▸ updateSingleAabb(colObj
): void
Parameters
Name | Type |
---|---|
colObj | btCollisionObject |
Returns
void
Defined in
setDebugDrawer
▸ setDebugDrawer(debugDrawer
): void
Parameters
Name | Type |
---|---|
debugDrawer | btIDebugDraw |
Returns
void
Defined in
getDebugDrawer
▸ getDebugDrawer(): btIDebugDraw
Returns
Defined in
debugDrawWorld
▸ debugDrawWorld(): void
Returns
void
Defined in
debugDrawObject
▸ debugDrawObject(worldTransform
, shape
, color
): void
Parameters
Name | Type |
---|---|
worldTransform | btTransform |
shape | btCollisionShape |
color | btVector3 |
Returns
void