Class: btDynamicsWorld
Ammo.btDynamicsWorld
Hierarchy
↳
btDynamicsWorld
Constructors
Methods
- getDispatcher
- rayTest
- getPairCache
- getDispatchInfo
- addCollisionObject
- removeCollisionObject
- getBroadphase
- convexSweepTest
- contactPairTest
- contactTest
- updateSingleAabb
- setDebugDrawer
- getDebugDrawer
- debugDrawWorld
- debugDrawObject
- addAction
- removeAction
- getSolverInfo
- setInternalTickCallback
Constructors
constructor
• new btDynamicsWorld(): btDynamicsWorld
Returns
Inherited from
Methods
getDispatcher
▸ getDispatcher(): btDispatcher
Returns
Inherited from
btCollisionWorld.getDispatcher
Defined in
rayTest
▸ rayTest(rayFromWorld
, rayToWorld
, resultCallback
): void
Parameters
Name | Type |
---|---|
rayFromWorld | btVector3 |
rayToWorld | btVector3 |
resultCallback | RayResultCallback |
Returns
void
Inherited from
Defined in
getPairCache
▸ getPairCache(): btOverlappingPairCache
Returns
Inherited from
Defined in
getDispatchInfo
▸ getDispatchInfo(): btDispatcherInfo
Returns
Inherited from
btCollisionWorld.getDispatchInfo
Defined in
addCollisionObject
▸ addCollisionObject(collisionObject
, collisionFilterGroup?
, collisionFilterMask?
): void
Parameters
Name | Type |
---|---|
collisionObject | btCollisionObject |
collisionFilterGroup? | number |
collisionFilterMask? | number |
Returns
void
Inherited from
btCollisionWorld.addCollisionObject
Defined in
removeCollisionObject
▸ removeCollisionObject(collisionObject
): void
Parameters
Name | Type |
---|---|
collisionObject | btCollisionObject |
Returns
void
Inherited from
btCollisionWorld.removeCollisionObject
Defined in
getBroadphase
▸ getBroadphase(): btBroadphaseInterface
Returns
Inherited from
btCollisionWorld.getBroadphase
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
Inherited from
btCollisionWorld.convexSweepTest
Defined in
contactPairTest
▸ contactPairTest(colObjA
, colObjB
, resultCallback
): void
Parameters
Name | Type |
---|---|
colObjA | btCollisionObject |
colObjB | btCollisionObject |
resultCallback | ContactResultCallback |
Returns
void
Inherited from
btCollisionWorld.contactPairTest
Defined in
contactTest
▸ contactTest(colObj
, resultCallback
): void
Parameters
Name | Type |
---|---|
colObj | btCollisionObject |
resultCallback | ContactResultCallback |
Returns
void
Inherited from
Defined in
updateSingleAabb
▸ updateSingleAabb(colObj
): void
Parameters
Name | Type |
---|---|
colObj | btCollisionObject |
Returns
void
Inherited from
btCollisionWorld.updateSingleAabb
Defined in
setDebugDrawer
▸ setDebugDrawer(debugDrawer
): void
Parameters
Name | Type |
---|---|
debugDrawer | btIDebugDraw |
Returns
void
Inherited from
btCollisionWorld.setDebugDrawer
Defined in
getDebugDrawer
▸ getDebugDrawer(): btIDebugDraw
Returns
Inherited from
btCollisionWorld.getDebugDrawer
Defined in
debugDrawWorld
▸ debugDrawWorld(): void
Returns
void
Inherited from
btCollisionWorld.debugDrawWorld
Defined in
debugDrawObject
▸ debugDrawObject(worldTransform
, shape
, color
): void
Parameters
Name | Type |
---|---|
worldTransform | btTransform |
shape | btCollisionShape |
color | btVector3 |
Returns
void
Inherited from
btCollisionWorld.debugDrawObject
Defined in
addAction
▸ addAction(action
): void
Parameters
Name | Type |
---|---|
action | btActionInterface |
Returns
void
Defined in
removeAction
▸ removeAction(action
): void
Parameters
Name | Type |
---|---|
action | btActionInterface |
Returns
void
Defined in
getSolverInfo
▸ getSolverInfo(): btContactSolverInfo
Returns
Defined in
setInternalTickCallback
▸ setInternalTickCallback(cb
, worldUserInfo?
, isPreTick?
): void
Parameters
Name | Type |
---|---|
cb | btInternalTickCallback |
worldUserInfo? | unknown |
isPreTick? | boolean |
Returns
void