Skip to content

Class: btDiscreteDynamicsWorld

Ammo.btDiscreteDynamicsWorld

Hierarchy

Constructors

Methods

Constructors

constructor

new btDiscreteDynamicsWorld(dispatcher, pairCache, constraintSolver, collisionConfiguration): btDiscreteDynamicsWorld

Parameters

NameType
dispatcherbtDispatcher
pairCachebtBroadphaseInterface
constraintSolverbtConstraintSolver
collisionConfigurationbtCollisionConfiguration

Returns

btDiscreteDynamicsWorld

Overrides

btDynamicsWorld.constructor

Defined in

packages/ammo/ammo.d.ts:678

Methods

getDispatcher

getDispatcher(): btDispatcher

Returns

btDispatcher

Inherited from

btDynamicsWorld.getDispatcher

Defined in

packages/ammo/ammo.d.ts:646


rayTest

rayTest(rayFromWorld, rayToWorld, resultCallback): void

Parameters

NameType
rayFromWorldbtVector3
rayToWorldbtVector3
resultCallbackRayResultCallback

Returns

void

Inherited from

btDynamicsWorld.rayTest

Defined in

packages/ammo/ammo.d.ts:647


getPairCache

getPairCache(): btOverlappingPairCache

Returns

btOverlappingPairCache

Inherited from

btDynamicsWorld.getPairCache

Defined in

packages/ammo/ammo.d.ts:648


getDispatchInfo

getDispatchInfo(): btDispatcherInfo

Returns

btDispatcherInfo

Inherited from

btDynamicsWorld.getDispatchInfo

Defined in

packages/ammo/ammo.d.ts:649


addCollisionObject

addCollisionObject(collisionObject, collisionFilterGroup?, collisionFilterMask?): void

Parameters

NameType
collisionObjectbtCollisionObject
collisionFilterGroup?number
collisionFilterMask?number

Returns

void

Inherited from

btDynamicsWorld.addCollisionObject

Defined in

packages/ammo/ammo.d.ts:650


removeCollisionObject

removeCollisionObject(collisionObject): void

Parameters

NameType
collisionObjectbtCollisionObject

Returns

void

Inherited from

btDynamicsWorld.removeCollisionObject

Defined in

packages/ammo/ammo.d.ts:651


getBroadphase

getBroadphase(): btBroadphaseInterface

Returns

btBroadphaseInterface

Inherited from

btDynamicsWorld.getBroadphase

Defined in

packages/ammo/ammo.d.ts:652


convexSweepTest

convexSweepTest(castShape, from, to, resultCallback, allowedCcdPenetration): void

Parameters

NameType
castShapebtConvexShape
frombtTransform
tobtTransform
resultCallbackConvexResultCallback
allowedCcdPenetrationnumber

Returns

void

Inherited from

btDynamicsWorld.convexSweepTest

Defined in

packages/ammo/ammo.d.ts:653


contactPairTest

contactPairTest(colObjA, colObjB, resultCallback): void

Parameters

NameType
colObjAbtCollisionObject
colObjBbtCollisionObject
resultCallbackContactResultCallback

Returns

void

Inherited from

btDynamicsWorld.contactPairTest

Defined in

packages/ammo/ammo.d.ts:654


contactTest

contactTest(colObj, resultCallback): void

Parameters

NameType
colObjbtCollisionObject
resultCallbackContactResultCallback

Returns

void

Inherited from

btDynamicsWorld.contactTest

Defined in

packages/ammo/ammo.d.ts:655


updateSingleAabb

updateSingleAabb(colObj): void

Parameters

NameType
colObjbtCollisionObject

Returns

void

Inherited from

btDynamicsWorld.updateSingleAabb

Defined in

packages/ammo/ammo.d.ts:656


setDebugDrawer

setDebugDrawer(debugDrawer): void

Parameters

NameType
debugDrawerbtIDebugDraw

Returns

void

Inherited from

btDynamicsWorld.setDebugDrawer

Defined in

packages/ammo/ammo.d.ts:657


getDebugDrawer

getDebugDrawer(): btIDebugDraw

Returns

btIDebugDraw

Inherited from

btDynamicsWorld.getDebugDrawer

Defined in

packages/ammo/ammo.d.ts:658


debugDrawWorld

debugDrawWorld(): void

Returns

void

Inherited from

btDynamicsWorld.debugDrawWorld

Defined in

packages/ammo/ammo.d.ts:659


debugDrawObject

debugDrawObject(worldTransform, shape, color): void

Parameters

NameType
worldTransformbtTransform
shapebtCollisionShape
colorbtVector3

Returns

void

Inherited from

btDynamicsWorld.debugDrawObject

Defined in

packages/ammo/ammo.d.ts:660


addAction

addAction(action): void

Parameters

NameType
actionbtActionInterface

Returns

void

Inherited from

btDynamicsWorld.addAction

Defined in

packages/ammo/ammo.d.ts:672


removeAction

removeAction(action): void

Parameters

NameType
actionbtActionInterface

Returns

void

Inherited from

btDynamicsWorld.removeAction

Defined in

packages/ammo/ammo.d.ts:673


getSolverInfo

getSolverInfo(): btContactSolverInfo

Returns

btContactSolverInfo

Inherited from

btDynamicsWorld.getSolverInfo

Defined in

packages/ammo/ammo.d.ts:674


setInternalTickCallback

setInternalTickCallback(cb, worldUserInfo?, isPreTick?): void

Parameters

NameType
cbbtInternalTickCallback
worldUserInfo?unknown
isPreTick?boolean

Returns

void

Inherited from

btDynamicsWorld.setInternalTickCallback

Defined in

packages/ammo/ammo.d.ts:675


setGravity

setGravity(gravity): void

Parameters

NameType
gravitybtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:679


getGravity

getGravity(): btVector3

Returns

btVector3

Defined in

packages/ammo/ammo.d.ts:680


addRigidBody

addRigidBody(body): void

Parameters

NameType
bodybtRigidBody

Returns

void

Defined in

packages/ammo/ammo.d.ts:681

addRigidBody(body, group, mask): void

Parameters

NameType
bodybtRigidBody
groupnumber
masknumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:682


removeRigidBody

removeRigidBody(body): void

Parameters

NameType
bodybtRigidBody

Returns

void

Defined in

packages/ammo/ammo.d.ts:683


addConstraint

addConstraint(constraint, disableCollisionsBetweenLinkedBodies?): void

Parameters

NameType
constraintbtTypedConstraint
disableCollisionsBetweenLinkedBodies?boolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:684


removeConstraint

removeConstraint(constraint): void

Parameters

NameType
constraintbtTypedConstraint

Returns

void

Defined in

packages/ammo/ammo.d.ts:685


stepSimulation

stepSimulation(timeStep, maxSubSteps?, fixedTimeStep?): number

Parameters

NameType
timeStepnumber
maxSubSteps?number
fixedTimeStep?number

Returns

number

Defined in

packages/ammo/ammo.d.ts:686


setContactAddedCallback

setContactAddedCallback(funcpointer): void

Parameters

NameType
funcpointernumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:687


setContactProcessedCallback

setContactProcessedCallback(funcpointer): void

Parameters

NameType
funcpointernumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:688


setContactDestroyedCallback

setContactDestroyedCallback(funcpointer): void

Parameters

NameType
funcpointernumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:689