Skip to content

Class: btSoftBody

Ammo.btSoftBody

Hierarchy

Constructors

Properties

Methods

Constructors

constructor

new btSoftBody(worldInfo, node_count, x, m): btSoftBody

Parameters

NameType
worldInfobtSoftBodyWorldInfo
node_countnumber
xbtVector3
mreadonly number[]

Returns

btSoftBody

Overrides

btCollisionObject.constructor

Defined in

packages/ammo/ammo.d.ts:1025

Properties

kB

kB: number

Inherited from

btCollisionObject.kB

Defined in

packages/ammo/ammo.d.ts:128

Methods

setAnisotropicFriction

setAnisotropicFriction(anisotropicFriction, frictionMode): void

Parameters

NameType
anisotropicFrictionbtVector3
frictionModenumber

Returns

void

Inherited from

btCollisionObject.setAnisotropicFriction

Defined in

packages/ammo/ammo.d.ts:129


getCollisionShape

getCollisionShape(): btCollisionShape

Returns

btCollisionShape

Inherited from

btCollisionObject.getCollisionShape

Defined in

packages/ammo/ammo.d.ts:130


setContactProcessingThreshold

setContactProcessingThreshold(contactProcessingThreshold): void

Parameters

NameType
contactProcessingThresholdnumber

Returns

void

Inherited from

btCollisionObject.setContactProcessingThreshold

Defined in

packages/ammo/ammo.d.ts:131


setActivationState

setActivationState(newState): void

Parameters

NameType
newStatenumber

Returns

void

Inherited from

btCollisionObject.setActivationState

Defined in

packages/ammo/ammo.d.ts:132


forceActivationState

forceActivationState(newState): void

Parameters

NameType
newStatenumber

Returns

void

Inherited from

btCollisionObject.forceActivationState

Defined in

packages/ammo/ammo.d.ts:133


activate

activate(forceActivation?): void

Parameters

NameType
forceActivation?boolean

Returns

void

Inherited from

btCollisionObject.activate

Defined in

packages/ammo/ammo.d.ts:134


isActive

isActive(): boolean

Returns

boolean

Inherited from

btCollisionObject.isActive

Defined in

packages/ammo/ammo.d.ts:135


isKinematicObject

isKinematicObject(): boolean

Returns

boolean

Inherited from

btCollisionObject.isKinematicObject

Defined in

packages/ammo/ammo.d.ts:136


isStaticObject

isStaticObject(): boolean

Returns

boolean

Inherited from

btCollisionObject.isStaticObject

Defined in

packages/ammo/ammo.d.ts:137


isStaticOrKinematicObject

isStaticOrKinematicObject(): boolean

Returns

boolean

Inherited from

btCollisionObject.isStaticOrKinematicObject

Defined in

packages/ammo/ammo.d.ts:138


getRestitution

getRestitution(): number

Returns

number

Inherited from

btCollisionObject.getRestitution

Defined in

packages/ammo/ammo.d.ts:139


getFriction

getFriction(): number

Returns

number

Inherited from

btCollisionObject.getFriction

Defined in

packages/ammo/ammo.d.ts:140


getRollingFriction

getRollingFriction(): number

Returns

number

Inherited from

btCollisionObject.getRollingFriction

Defined in

packages/ammo/ammo.d.ts:141


setRestitution

setRestitution(rest): void

Parameters

NameType
restnumber

Returns

void

Inherited from

btCollisionObject.setRestitution

Defined in

packages/ammo/ammo.d.ts:142


setFriction

setFriction(frict): void

Parameters

NameType
frictnumber

Returns

void

Inherited from

btCollisionObject.setFriction

Defined in

packages/ammo/ammo.d.ts:143


setRollingFriction

setRollingFriction(frict): void

Parameters

NameType
frictnumber

Returns

void

Inherited from

btCollisionObject.setRollingFriction

Defined in

packages/ammo/ammo.d.ts:144


getWorldTransform

getWorldTransform(): btTransform

Returns

btTransform

Inherited from

btCollisionObject.getWorldTransform

Defined in

packages/ammo/ammo.d.ts:145


getCollisionFlags

getCollisionFlags(): number

Returns

number

Inherited from

btCollisionObject.getCollisionFlags

Defined in

packages/ammo/ammo.d.ts:146


setCollisionFlags

setCollisionFlags(flags): void

Parameters

NameType
flagsnumber

Returns

void

Inherited from

btCollisionObject.setCollisionFlags

Defined in

packages/ammo/ammo.d.ts:147


setWorldTransform

setWorldTransform(worldTrans): void

Parameters

NameType
worldTransbtTransform

Returns

void

Inherited from

btCollisionObject.setWorldTransform

Defined in

packages/ammo/ammo.d.ts:148


setCollisionShape

setCollisionShape(collisionShape): void

Parameters

NameType
collisionShapebtCollisionShape

Returns

void

Inherited from

btCollisionObject.setCollisionShape

Defined in

packages/ammo/ammo.d.ts:149


setCcdMotionThreshold

setCcdMotionThreshold(ccdMotionThreshold): void

Parameters

NameType
ccdMotionThresholdnumber

Returns

void

Inherited from

btCollisionObject.setCcdMotionThreshold

Defined in

packages/ammo/ammo.d.ts:150


setCcdSweptSphereRadius

setCcdSweptSphereRadius(radius): void

Parameters

NameType
radiusnumber

Returns

void

Inherited from

btCollisionObject.setCcdSweptSphereRadius

Defined in

packages/ammo/ammo.d.ts:151


getUserIndex

getUserIndex(): number

Returns

number

Inherited from

btCollisionObject.getUserIndex

Defined in

packages/ammo/ammo.d.ts:152


setUserIndex

setUserIndex(index): void

Parameters

NameType
indexnumber

Returns

void

Inherited from

btCollisionObject.setUserIndex

Defined in

packages/ammo/ammo.d.ts:153


getUserPointer

getUserPointer(): unknown

Returns

unknown

Inherited from

btCollisionObject.getUserPointer

Defined in

packages/ammo/ammo.d.ts:154


setUserPointer

setUserPointer(userPointer): void

Parameters

NameType
userPointerunknown

Returns

void

Inherited from

btCollisionObject.setUserPointer

Defined in

packages/ammo/ammo.d.ts:155


getBroadphaseHandle

getBroadphaseHandle(): btBroadphaseProxy

Returns

btBroadphaseProxy

Inherited from

btCollisionObject.getBroadphaseHandle

Defined in

packages/ammo/ammo.d.ts:156


get_m_cfg

get_m_cfg(): Config

Returns

Config

Defined in

packages/ammo/ammo.d.ts:1026


set_m_cfg

set_m_cfg(m_cfg): void

Parameters

NameType
m_cfgConfig

Returns

void

Defined in

packages/ammo/ammo.d.ts:1027


get_m_nodes

get_m_nodes(): tNodeArray

Returns

tNodeArray

Defined in

packages/ammo/ammo.d.ts:1028


set_m_nodes

set_m_nodes(m_nodes): void

Parameters

NameType
m_nodestNodeArray

Returns

void

Defined in

packages/ammo/ammo.d.ts:1029


get_m_faces

get_m_faces(): tFaceArray

Returns

tFaceArray

Defined in

packages/ammo/ammo.d.ts:1030


set_m_faces

set_m_faces(m_faces): void

Parameters

NameType
m_facestFaceArray

Returns

void

Defined in

packages/ammo/ammo.d.ts:1031


get_m_materials

get_m_materials(): tMaterialArray

Returns

tMaterialArray

Defined in

packages/ammo/ammo.d.ts:1032


set_m_materials

set_m_materials(m_materials): void

Parameters

NameType
m_materialstMaterialArray

Returns

void

Defined in

packages/ammo/ammo.d.ts:1033


get_m_anchors

get_m_anchors(): tAnchorArray

Returns

tAnchorArray

Defined in

packages/ammo/ammo.d.ts:1034


set_m_anchors

set_m_anchors(m_anchors): void

Parameters

NameType
m_anchorstAnchorArray

Returns

void

Defined in

packages/ammo/ammo.d.ts:1035


checkLink(node0, node1): boolean

Parameters

NameType
node0number
node1number

Returns

boolean

Defined in

packages/ammo/ammo.d.ts:1036


checkFace

checkFace(node0, node1, node2): boolean

Parameters

NameType
node0number
node1number
node2number

Returns

boolean

Defined in

packages/ammo/ammo.d.ts:1037


appendMaterial

appendMaterial(): Material

Returns

Material

Defined in

packages/ammo/ammo.d.ts:1038


appendNode

appendNode(x, m): void

Parameters

NameType
xbtVector3
mnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:1039


appendLink(node0, node1, mat, bcheckexist): void

Parameters

NameType
node0number
node1number
matMaterial
bcheckexistboolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:1040


appendFace

appendFace(node0, node1, node2, mat): void

Parameters

NameType
node0number
node1number
node2number
matMaterial

Returns

void

Defined in

packages/ammo/ammo.d.ts:1041


appendTetra

appendTetra(node0, node1, node2, node3, mat): void

Parameters

NameType
node0number
node1number
node2number
node3number
matMaterial

Returns

void

Defined in

packages/ammo/ammo.d.ts:1042


appendAnchor

appendAnchor(node, body, disableCollisionBetweenLinkedBodies, influence): void

Parameters

NameType
nodenumber
bodybtRigidBody
disableCollisionBetweenLinkedBodiesboolean
influencenumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:1043


addForce

addForce(force): void

Parameters

NameType
forcebtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:1044

addForce(force, node): void

Parameters

NameType
forcebtVector3
nodenumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:1045


addAeroForceToNode

addAeroForceToNode(windVelocity, nodeIndex): void

Parameters

NameType
windVelocitybtVector3
nodeIndexnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:1046


getTotalMass

getTotalMass(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:1047


setTotalMass

setTotalMass(mass, fromfaces): void

Parameters

NameType
massnumber
fromfacesboolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:1048


setMass

setMass(node, mass): void

Parameters

NameType
nodenumber
massnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:1049


transform

transform(trs): void

Parameters

NameType
trsbtTransform

Returns

void

Defined in

packages/ammo/ammo.d.ts:1050


translate

translate(trs): void

Parameters

NameType
trsbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:1051


rotate

rotate(rot): void

Parameters

NameType
rotbtQuaternion

Returns

void

Defined in

packages/ammo/ammo.d.ts:1052


scale

scale(scl): void

Parameters

NameType
sclbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:1053


generateClusters

generateClusters(k, maxiterations?): number

Parameters

NameType
knumber
maxiterations?number

Returns

number

Defined in

packages/ammo/ammo.d.ts:1054


generateBendingConstraints

generateBendingConstraints(distance, mat): number

Parameters

NameType
distancenumber
matMaterial

Returns

number

Defined in

packages/ammo/ammo.d.ts:1055


upcast

upcast(colObj): btSoftBody

Parameters

NameType
colObjbtCollisionObject

Returns

btSoftBody

Defined in

packages/ammo/ammo.d.ts:1056