Class: btDiscreteDynamicsWorld
Ammo.btDiscreteDynamicsWorld
Hierarchy
↳
btDiscreteDynamicsWorld
Constructors
Methods
- getDispatcher
- rayTest
- getPairCache
- getDispatchInfo
- addCollisionObject
- removeCollisionObject
- getBroadphase
- convexSweepTest
- contactPairTest
- contactTest
- updateSingleAabb
- setDebugDrawer
- getDebugDrawer
- debugDrawWorld
- debugDrawObject
- addAction
- removeAction
- getSolverInfo
- setInternalTickCallback
- setGravity
- getGravity
- addRigidBody
- removeRigidBody
- addConstraint
- removeConstraint
- stepSimulation
- setContactAddedCallback
- setContactProcessedCallback
- setContactDestroyedCallback
Constructors
constructor
• new btDiscreteDynamicsWorld(dispatcher
, pairCache
, constraintSolver
, collisionConfiguration
): btDiscreteDynamicsWorld
Parameters
Name | Type |
---|---|
dispatcher | btDispatcher |
pairCache | btBroadphaseInterface |
constraintSolver | btConstraintSolver |
collisionConfiguration | btCollisionConfiguration |
Returns
Overrides
Defined in
Methods
getDispatcher
▸ getDispatcher(): btDispatcher
Returns
Inherited from
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
btDynamicsWorld.getDispatchInfo
Defined in
addCollisionObject
▸ addCollisionObject(collisionObject
, collisionFilterGroup?
, collisionFilterMask?
): void
Parameters
Name | Type |
---|---|
collisionObject | btCollisionObject |
collisionFilterGroup? | number |
collisionFilterMask? | number |
Returns
void
Inherited from
btDynamicsWorld.addCollisionObject
Defined in
removeCollisionObject
▸ removeCollisionObject(collisionObject
): void
Parameters
Name | Type |
---|---|
collisionObject | btCollisionObject |
Returns
void
Inherited from
btDynamicsWorld.removeCollisionObject
Defined in
getBroadphase
▸ getBroadphase(): btBroadphaseInterface
Returns
Inherited from
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
btDynamicsWorld.convexSweepTest
Defined in
contactPairTest
▸ contactPairTest(colObjA
, colObjB
, resultCallback
): void
Parameters
Name | Type |
---|---|
colObjA | btCollisionObject |
colObjB | btCollisionObject |
resultCallback | ContactResultCallback |
Returns
void
Inherited from
btDynamicsWorld.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
btDynamicsWorld.updateSingleAabb
Defined in
setDebugDrawer
▸ setDebugDrawer(debugDrawer
): void
Parameters
Name | Type |
---|---|
debugDrawer | btIDebugDraw |
Returns
void
Inherited from
btDynamicsWorld.setDebugDrawer
Defined in
getDebugDrawer
▸ getDebugDrawer(): btIDebugDraw
Returns
Inherited from
btDynamicsWorld.getDebugDrawer
Defined in
debugDrawWorld
▸ debugDrawWorld(): void
Returns
void
Inherited from
btDynamicsWorld.debugDrawWorld
Defined in
debugDrawObject
▸ debugDrawObject(worldTransform
, shape
, color
): void
Parameters
Name | Type |
---|---|
worldTransform | btTransform |
shape | btCollisionShape |
color | btVector3 |
Returns
void
Inherited from
btDynamicsWorld.debugDrawObject
Defined in
addAction
▸ addAction(action
): void
Parameters
Name | Type |
---|---|
action | btActionInterface |
Returns
void
Inherited from
Defined in
removeAction
▸ removeAction(action
): void
Parameters
Name | Type |
---|---|
action | btActionInterface |
Returns
void
Inherited from
Defined in
getSolverInfo
▸ getSolverInfo(): btContactSolverInfo
Returns
Inherited from
Defined in
setInternalTickCallback
▸ setInternalTickCallback(cb
, worldUserInfo?
, isPreTick?
): void
Parameters
Name | Type |
---|---|
cb | btInternalTickCallback |
worldUserInfo? | unknown |
isPreTick? | boolean |
Returns
void
Inherited from
btDynamicsWorld.setInternalTickCallback
Defined in
setGravity
▸ setGravity(gravity
): void
Parameters
Name | Type |
---|---|
gravity | btVector3 |
Returns
void
Defined in
getGravity
▸ getGravity(): btVector3
Returns
Defined in
addRigidBody
▸ addRigidBody(body
): void
Parameters
Name | Type |
---|---|
body | btRigidBody |
Returns
void
Defined in
▸ addRigidBody(body
, group
, mask
): void
Parameters
Name | Type |
---|---|
body | btRigidBody |
group | number |
mask | number |
Returns
void
Defined in
removeRigidBody
▸ removeRigidBody(body
): void
Parameters
Name | Type |
---|---|
body | btRigidBody |
Returns
void
Defined in
addConstraint
▸ addConstraint(constraint
, disableCollisionsBetweenLinkedBodies?
): void
Parameters
Name | Type |
---|---|
constraint | btTypedConstraint |
disableCollisionsBetweenLinkedBodies? | boolean |
Returns
void
Defined in
removeConstraint
▸ removeConstraint(constraint
): void
Parameters
Name | Type |
---|---|
constraint | btTypedConstraint |
Returns
void
Defined in
stepSimulation
▸ stepSimulation(timeStep
, maxSubSteps?
, fixedTimeStep?
): number
Parameters
Name | Type |
---|---|
timeStep | number |
maxSubSteps? | number |
fixedTimeStep? | number |
Returns
number
Defined in
setContactAddedCallback
▸ setContactAddedCallback(funcpointer
): void
Parameters
Name | Type |
---|---|
funcpointer | number |
Returns
void
Defined in
setContactProcessedCallback
▸ setContactProcessedCallback(funcpointer
): void
Parameters
Name | Type |
---|---|
funcpointer | number |
Returns
void
Defined in
setContactDestroyedCallback
▸ setContactDestroyedCallback(funcpointer
): void
Parameters
Name | Type |
---|---|
funcpointer | number |
Returns
void