Skip to content

Class: btDynamicsWorld

Ammo.btDynamicsWorld

Hierarchy

Constructors

Methods

Constructors

constructor

new btDynamicsWorld(): btDynamicsWorld

Returns

btDynamicsWorld

Inherited from

btCollisionWorld.constructor

Methods

getDispatcher

getDispatcher(): btDispatcher

Returns

btDispatcher

Inherited from

btCollisionWorld.getDispatcher

Defined in

packages/ammo/ammo.d.ts:646


rayTest

rayTest(rayFromWorld, rayToWorld, resultCallback): void

Parameters

NameType
rayFromWorldbtVector3
rayToWorldbtVector3
resultCallbackRayResultCallback

Returns

void

Inherited from

btCollisionWorld.rayTest

Defined in

packages/ammo/ammo.d.ts:647


getPairCache

getPairCache(): btOverlappingPairCache

Returns

btOverlappingPairCache

Inherited from

btCollisionWorld.getPairCache

Defined in

packages/ammo/ammo.d.ts:648


getDispatchInfo

getDispatchInfo(): btDispatcherInfo

Returns

btDispatcherInfo

Inherited from

btCollisionWorld.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

btCollisionWorld.addCollisionObject

Defined in

packages/ammo/ammo.d.ts:650


removeCollisionObject

removeCollisionObject(collisionObject): void

Parameters

NameType
collisionObjectbtCollisionObject

Returns

void

Inherited from

btCollisionWorld.removeCollisionObject

Defined in

packages/ammo/ammo.d.ts:651


getBroadphase

getBroadphase(): btBroadphaseInterface

Returns

btBroadphaseInterface

Inherited from

btCollisionWorld.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

btCollisionWorld.convexSweepTest

Defined in

packages/ammo/ammo.d.ts:653


contactPairTest

contactPairTest(colObjA, colObjB, resultCallback): void

Parameters

NameType
colObjAbtCollisionObject
colObjBbtCollisionObject
resultCallbackContactResultCallback

Returns

void

Inherited from

btCollisionWorld.contactPairTest

Defined in

packages/ammo/ammo.d.ts:654


contactTest

contactTest(colObj, resultCallback): void

Parameters

NameType
colObjbtCollisionObject
resultCallbackContactResultCallback

Returns

void

Inherited from

btCollisionWorld.contactTest

Defined in

packages/ammo/ammo.d.ts:655


updateSingleAabb

updateSingleAabb(colObj): void

Parameters

NameType
colObjbtCollisionObject

Returns

void

Inherited from

btCollisionWorld.updateSingleAabb

Defined in

packages/ammo/ammo.d.ts:656


setDebugDrawer

setDebugDrawer(debugDrawer): void

Parameters

NameType
debugDrawerbtIDebugDraw

Returns

void

Inherited from

btCollisionWorld.setDebugDrawer

Defined in

packages/ammo/ammo.d.ts:657


getDebugDrawer

getDebugDrawer(): btIDebugDraw

Returns

btIDebugDraw

Inherited from

btCollisionWorld.getDebugDrawer

Defined in

packages/ammo/ammo.d.ts:658


debugDrawWorld

debugDrawWorld(): void

Returns

void

Inherited from

btCollisionWorld.debugDrawWorld

Defined in

packages/ammo/ammo.d.ts:659


debugDrawObject

debugDrawObject(worldTransform, shape, color): void

Parameters

NameType
worldTransformbtTransform
shapebtCollisionShape
colorbtVector3

Returns

void

Inherited from

btCollisionWorld.debugDrawObject

Defined in

packages/ammo/ammo.d.ts:660


addAction

addAction(action): void

Parameters

NameType
actionbtActionInterface

Returns

void

Defined in

packages/ammo/ammo.d.ts:672


removeAction

removeAction(action): void

Parameters

NameType
actionbtActionInterface

Returns

void

Defined in

packages/ammo/ammo.d.ts:673


getSolverInfo

getSolverInfo(): btContactSolverInfo

Returns

btContactSolverInfo

Defined in

packages/ammo/ammo.d.ts:674


setInternalTickCallback

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

Parameters

NameType
cbbtInternalTickCallback
worldUserInfo?unknown
isPreTick?boolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:675

Released under the MIT License