Skip to content

Class: btSoftRigidDynamicsWorld

Ammo.btSoftRigidDynamicsWorld

Hierarchy

Constructors

Methods

Constructors

constructor

new btSoftRigidDynamicsWorld(dispatcher, pairCache, constraintSolver, collisionConfiguration, softBodySolver): btSoftRigidDynamicsWorld

Parameters

NameType
dispatcherbtDispatcher
pairCachebtBroadphaseInterface
constraintSolverbtConstraintSolver
collisionConfigurationbtCollisionConfiguration
softBodySolverbtSoftBodySolver

Returns

btSoftRigidDynamicsWorld

Overrides

btDiscreteDynamicsWorld.constructor

Defined in

packages/ammo/ammo.d.ts:1070

Methods

getDispatcher

getDispatcher(): btDispatcher

Returns

btDispatcher

Inherited from

btDiscreteDynamicsWorld.getDispatcher

Defined in

packages/ammo/ammo.d.ts:646


rayTest

rayTest(rayFromWorld, rayToWorld, resultCallback): void

Parameters

NameType
rayFromWorldbtVector3
rayToWorldbtVector3
resultCallbackRayResultCallback

Returns

void

Inherited from

btDiscreteDynamicsWorld.rayTest

Defined in

packages/ammo/ammo.d.ts:647


getPairCache

getPairCache(): btOverlappingPairCache

Returns

btOverlappingPairCache

Inherited from

btDiscreteDynamicsWorld.getPairCache

Defined in

packages/ammo/ammo.d.ts:648


getDispatchInfo

getDispatchInfo(): btDispatcherInfo

Returns

btDispatcherInfo

Inherited from

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

btDiscreteDynamicsWorld.addCollisionObject

Defined in

packages/ammo/ammo.d.ts:650


getBroadphase

getBroadphase(): btBroadphaseInterface

Returns

btBroadphaseInterface

Inherited from

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

btDiscreteDynamicsWorld.convexSweepTest

Defined in

packages/ammo/ammo.d.ts:653


contactPairTest

contactPairTest(colObjA, colObjB, resultCallback): void

Parameters

NameType
colObjAbtCollisionObject
colObjBbtCollisionObject
resultCallbackContactResultCallback

Returns

void

Inherited from

btDiscreteDynamicsWorld.contactPairTest

Defined in

packages/ammo/ammo.d.ts:654


contactTest

contactTest(colObj, resultCallback): void

Parameters

NameType
colObjbtCollisionObject
resultCallbackContactResultCallback

Returns

void

Inherited from

btDiscreteDynamicsWorld.contactTest

Defined in

packages/ammo/ammo.d.ts:655


updateSingleAabb

updateSingleAabb(colObj): void

Parameters

NameType
colObjbtCollisionObject

Returns

void

Inherited from

btDiscreteDynamicsWorld.updateSingleAabb

Defined in

packages/ammo/ammo.d.ts:656


setDebugDrawer

setDebugDrawer(debugDrawer): void

Parameters

NameType
debugDrawerbtIDebugDraw

Returns

void

Inherited from

btDiscreteDynamicsWorld.setDebugDrawer

Defined in

packages/ammo/ammo.d.ts:657


getDebugDrawer

getDebugDrawer(): btIDebugDraw

Returns

btIDebugDraw

Inherited from

btDiscreteDynamicsWorld.getDebugDrawer

Defined in

packages/ammo/ammo.d.ts:658


debugDrawWorld

debugDrawWorld(): void

Returns

void

Inherited from

btDiscreteDynamicsWorld.debugDrawWorld

Defined in

packages/ammo/ammo.d.ts:659


debugDrawObject

debugDrawObject(worldTransform, shape, color): void

Parameters

NameType
worldTransformbtTransform
shapebtCollisionShape
colorbtVector3

Returns

void

Inherited from

btDiscreteDynamicsWorld.debugDrawObject

Defined in

packages/ammo/ammo.d.ts:660


addAction

addAction(action): void

Parameters

NameType
actionbtActionInterface

Returns

void

Inherited from

btDiscreteDynamicsWorld.addAction

Defined in

packages/ammo/ammo.d.ts:672


removeAction

removeAction(action): void

Parameters

NameType
actionbtActionInterface

Returns

void

Inherited from

btDiscreteDynamicsWorld.removeAction

Defined in

packages/ammo/ammo.d.ts:673


getSolverInfo

getSolverInfo(): btContactSolverInfo

Returns

btContactSolverInfo

Inherited from

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

btDiscreteDynamicsWorld.setInternalTickCallback

Defined in

packages/ammo/ammo.d.ts:675


setGravity

setGravity(gravity): void

Parameters

NameType
gravitybtVector3

Returns

void

Inherited from

btDiscreteDynamicsWorld.setGravity

Defined in

packages/ammo/ammo.d.ts:679


getGravity

getGravity(): btVector3

Returns

btVector3

Inherited from

btDiscreteDynamicsWorld.getGravity

Defined in

packages/ammo/ammo.d.ts:680


addRigidBody

addRigidBody(body): void

Parameters

NameType
bodybtRigidBody

Returns

void

Inherited from

btDiscreteDynamicsWorld.addRigidBody

Defined in

packages/ammo/ammo.d.ts:681

addRigidBody(body, group, mask): void

Parameters

NameType
bodybtRigidBody
groupnumber
masknumber

Returns

void

Inherited from

btDiscreteDynamicsWorld.addRigidBody

Defined in

packages/ammo/ammo.d.ts:682


removeRigidBody

removeRigidBody(body): void

Parameters

NameType
bodybtRigidBody

Returns

void

Inherited from

btDiscreteDynamicsWorld.removeRigidBody

Defined in

packages/ammo/ammo.d.ts:683


addConstraint

addConstraint(constraint, disableCollisionsBetweenLinkedBodies?): void

Parameters

NameType
constraintbtTypedConstraint
disableCollisionsBetweenLinkedBodies?boolean

Returns

void

Inherited from

btDiscreteDynamicsWorld.addConstraint

Defined in

packages/ammo/ammo.d.ts:684


removeConstraint

removeConstraint(constraint): void

Parameters

NameType
constraintbtTypedConstraint

Returns

void

Inherited from

btDiscreteDynamicsWorld.removeConstraint

Defined in

packages/ammo/ammo.d.ts:685


stepSimulation

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

Parameters

NameType
timeStepnumber
maxSubSteps?number
fixedTimeStep?number

Returns

number

Inherited from

btDiscreteDynamicsWorld.stepSimulation

Defined in

packages/ammo/ammo.d.ts:686


setContactAddedCallback

setContactAddedCallback(funcpointer): void

Parameters

NameType
funcpointernumber

Returns

void

Inherited from

btDiscreteDynamicsWorld.setContactAddedCallback

Defined in

packages/ammo/ammo.d.ts:687


setContactProcessedCallback

setContactProcessedCallback(funcpointer): void

Parameters

NameType
funcpointernumber

Returns

void

Inherited from

btDiscreteDynamicsWorld.setContactProcessedCallback

Defined in

packages/ammo/ammo.d.ts:688


setContactDestroyedCallback

setContactDestroyedCallback(funcpointer): void

Parameters

NameType
funcpointernumber

Returns

void

Inherited from

btDiscreteDynamicsWorld.setContactDestroyedCallback

Defined in

packages/ammo/ammo.d.ts:689


addSoftBody

addSoftBody(body, collisionFilterGroup, collisionFilterMask): void

Parameters

NameType
bodybtSoftBody
collisionFilterGroupnumber
collisionFilterMasknumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:1071


removeSoftBody

removeSoftBody(body): void

Parameters

NameType
bodybtSoftBody

Returns

void

Defined in

packages/ammo/ammo.d.ts:1072


removeCollisionObject

removeCollisionObject(collisionObject): void

Parameters

NameType
collisionObjectbtCollisionObject

Returns

void

Overrides

btDiscreteDynamicsWorld.removeCollisionObject

Defined in

packages/ammo/ammo.d.ts:1073


getWorldInfo

getWorldInfo(): btSoftBodyWorldInfo

Returns

btSoftBodyWorldInfo

Defined in

packages/ammo/ammo.d.ts:1074


getSoftBodyArray

getSoftBodyArray(): btSoftBodyArray

Returns

btSoftBodyArray

Defined in

packages/ammo/ammo.d.ts:1075