Skip to content

Class: btCollisionWorld

Ammo.btCollisionWorld

Hierarchy

Constructors

Methods

Constructors

constructor

new btCollisionWorld(): btCollisionWorld

Returns

btCollisionWorld

Methods

getDispatcher

getDispatcher(): btDispatcher

Returns

btDispatcher

Defined in

packages/ammo/ammo.d.ts:646


rayTest

rayTest(rayFromWorld, rayToWorld, resultCallback): void

Parameters

NameType
rayFromWorldbtVector3
rayToWorldbtVector3
resultCallbackRayResultCallback

Returns

void

Defined in

packages/ammo/ammo.d.ts:647


getPairCache

getPairCache(): btOverlappingPairCache

Returns

btOverlappingPairCache

Defined in

packages/ammo/ammo.d.ts:648


getDispatchInfo

getDispatchInfo(): btDispatcherInfo

Returns

btDispatcherInfo

Defined in

packages/ammo/ammo.d.ts:649


addCollisionObject

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

Parameters

NameType
collisionObjectbtCollisionObject
collisionFilterGroup?number
collisionFilterMask?number

Returns

void

Defined in

packages/ammo/ammo.d.ts:650


removeCollisionObject

removeCollisionObject(collisionObject): void

Parameters

NameType
collisionObjectbtCollisionObject

Returns

void

Defined in

packages/ammo/ammo.d.ts:651


getBroadphase

getBroadphase(): btBroadphaseInterface

Returns

btBroadphaseInterface

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

Defined in

packages/ammo/ammo.d.ts:653


contactPairTest

contactPairTest(colObjA, colObjB, resultCallback): void

Parameters

NameType
colObjAbtCollisionObject
colObjBbtCollisionObject
resultCallbackContactResultCallback

Returns

void

Defined in

packages/ammo/ammo.d.ts:654


contactTest

contactTest(colObj, resultCallback): void

Parameters

NameType
colObjbtCollisionObject
resultCallbackContactResultCallback

Returns

void

Defined in

packages/ammo/ammo.d.ts:655


updateSingleAabb

updateSingleAabb(colObj): void

Parameters

NameType
colObjbtCollisionObject

Returns

void

Defined in

packages/ammo/ammo.d.ts:656


setDebugDrawer

setDebugDrawer(debugDrawer): void

Parameters

NameType
debugDrawerbtIDebugDraw

Returns

void

Defined in

packages/ammo/ammo.d.ts:657


getDebugDrawer

getDebugDrawer(): btIDebugDraw

Returns

btIDebugDraw

Defined in

packages/ammo/ammo.d.ts:658


debugDrawWorld

debugDrawWorld(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:659


debugDrawObject

debugDrawObject(worldTransform, shape, color): void

Parameters

NameType
worldTransformbtTransform
shapebtCollisionShape
colorbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:660

Released under the MIT License