Class: btSoftBody
Ammo.btSoftBody
Hierarchy
↳
btSoftBody
Constructors
Properties
Methods
- setAnisotropicFriction
- getCollisionShape
- setContactProcessingThreshold
- setActivationState
- forceActivationState
- activate
- isActive
- isKinematicObject
- isStaticObject
- isStaticOrKinematicObject
- getRestitution
- getFriction
- getRollingFriction
- setRestitution
- setFriction
- setRollingFriction
- getWorldTransform
- getCollisionFlags
- setCollisionFlags
- setWorldTransform
- setCollisionShape
- setCcdMotionThreshold
- setCcdSweptSphereRadius
- getUserIndex
- setUserIndex
- getUserPointer
- setUserPointer
- getBroadphaseHandle
- get_m_cfg
- set_m_cfg
- get_m_nodes
- set_m_nodes
- get_m_faces
- set_m_faces
- get_m_materials
- set_m_materials
- get_m_anchors
- set_m_anchors
- checkLink
- checkFace
- appendMaterial
- appendNode
- appendLink
- appendFace
- appendTetra
- appendAnchor
- addForce
- addAeroForceToNode
- getTotalMass
- setTotalMass
- setMass
- transform
- translate
- rotate
- scale
- generateClusters
- generateBendingConstraints
- upcast
Constructors
constructor
• new btSoftBody(worldInfo
, node_count
, x
, m
): btSoftBody
Parameters
Name | Type |
---|---|
worldInfo | btSoftBodyWorldInfo |
node_count | number |
x | btVector3 |
m | readonly number [] |
Returns
Overrides
Defined in
Properties
kB
• kB: number
Inherited from
Defined in
Methods
setAnisotropicFriction
▸ setAnisotropicFriction(anisotropicFriction
, frictionMode
): void
Parameters
Name | Type |
---|---|
anisotropicFriction | btVector3 |
frictionMode | number |
Returns
void
Inherited from
btCollisionObject.setAnisotropicFriction
Defined in
getCollisionShape
▸ getCollisionShape(): btCollisionShape
Returns
Inherited from
btCollisionObject.getCollisionShape
Defined in
setContactProcessingThreshold
▸ setContactProcessingThreshold(contactProcessingThreshold
): void
Parameters
Name | Type |
---|---|
contactProcessingThreshold | number |
Returns
void
Inherited from
btCollisionObject.setContactProcessingThreshold
Defined in
setActivationState
▸ setActivationState(newState
): void
Parameters
Name | Type |
---|---|
newState | number |
Returns
void
Inherited from
btCollisionObject.setActivationState
Defined in
forceActivationState
▸ forceActivationState(newState
): void
Parameters
Name | Type |
---|---|
newState | number |
Returns
void
Inherited from
btCollisionObject.forceActivationState
Defined in
activate
▸ activate(forceActivation?
): void
Parameters
Name | Type |
---|---|
forceActivation? | boolean |
Returns
void
Inherited from
Defined in
isActive
▸ isActive(): boolean
Returns
boolean
Inherited from
Defined in
isKinematicObject
▸ isKinematicObject(): boolean
Returns
boolean
Inherited from
btCollisionObject.isKinematicObject
Defined in
isStaticObject
▸ isStaticObject(): boolean
Returns
boolean
Inherited from
btCollisionObject.isStaticObject
Defined in
isStaticOrKinematicObject
▸ isStaticOrKinematicObject(): boolean
Returns
boolean
Inherited from
btCollisionObject.isStaticOrKinematicObject
Defined in
getRestitution
▸ getRestitution(): number
Returns
number
Inherited from
btCollisionObject.getRestitution
Defined in
getFriction
▸ getFriction(): number
Returns
number
Inherited from
Defined in
getRollingFriction
▸ getRollingFriction(): number
Returns
number
Inherited from
btCollisionObject.getRollingFriction
Defined in
setRestitution
▸ setRestitution(rest
): void
Parameters
Name | Type |
---|---|
rest | number |
Returns
void
Inherited from
btCollisionObject.setRestitution
Defined in
setFriction
▸ setFriction(frict
): void
Parameters
Name | Type |
---|---|
frict | number |
Returns
void
Inherited from
Defined in
setRollingFriction
▸ setRollingFriction(frict
): void
Parameters
Name | Type |
---|---|
frict | number |
Returns
void
Inherited from
btCollisionObject.setRollingFriction
Defined in
getWorldTransform
▸ getWorldTransform(): btTransform
Returns
Inherited from
btCollisionObject.getWorldTransform
Defined in
getCollisionFlags
▸ getCollisionFlags(): number
Returns
number
Inherited from
btCollisionObject.getCollisionFlags
Defined in
setCollisionFlags
▸ setCollisionFlags(flags
): void
Parameters
Name | Type |
---|---|
flags | number |
Returns
void
Inherited from
btCollisionObject.setCollisionFlags
Defined in
setWorldTransform
▸ setWorldTransform(worldTrans
): void
Parameters
Name | Type |
---|---|
worldTrans | btTransform |
Returns
void
Inherited from
btCollisionObject.setWorldTransform
Defined in
setCollisionShape
▸ setCollisionShape(collisionShape
): void
Parameters
Name | Type |
---|---|
collisionShape | btCollisionShape |
Returns
void
Inherited from
btCollisionObject.setCollisionShape
Defined in
setCcdMotionThreshold
▸ setCcdMotionThreshold(ccdMotionThreshold
): void
Parameters
Name | Type |
---|---|
ccdMotionThreshold | number |
Returns
void
Inherited from
btCollisionObject.setCcdMotionThreshold
Defined in
setCcdSweptSphereRadius
▸ setCcdSweptSphereRadius(radius
): void
Parameters
Name | Type |
---|---|
radius | number |
Returns
void
Inherited from
btCollisionObject.setCcdSweptSphereRadius
Defined in
getUserIndex
▸ getUserIndex(): number
Returns
number
Inherited from
btCollisionObject.getUserIndex
Defined in
setUserIndex
▸ setUserIndex(index
): void
Parameters
Name | Type |
---|---|
index | number |
Returns
void
Inherited from
btCollisionObject.setUserIndex
Defined in
getUserPointer
▸ getUserPointer(): unknown
Returns
unknown
Inherited from
btCollisionObject.getUserPointer
Defined in
setUserPointer
▸ setUserPointer(userPointer
): void
Parameters
Name | Type |
---|---|
userPointer | unknown |
Returns
void
Inherited from
btCollisionObject.setUserPointer
Defined in
getBroadphaseHandle
▸ getBroadphaseHandle(): btBroadphaseProxy
Returns
Inherited from
btCollisionObject.getBroadphaseHandle
Defined in
get_m_cfg
▸ get_m_cfg(): Config
Returns
Defined in
set_m_cfg
▸ set_m_cfg(m_cfg
): void
Parameters
Name | Type |
---|---|
m_cfg | Config |
Returns
void
Defined in
get_m_nodes
▸ get_m_nodes(): tNodeArray
Returns
Defined in
set_m_nodes
▸ set_m_nodes(m_nodes
): void
Parameters
Name | Type |
---|---|
m_nodes | tNodeArray |
Returns
void
Defined in
get_m_faces
▸ get_m_faces(): tFaceArray
Returns
Defined in
set_m_faces
▸ set_m_faces(m_faces
): void
Parameters
Name | Type |
---|---|
m_faces | tFaceArray |
Returns
void
Defined in
get_m_materials
▸ get_m_materials(): tMaterialArray
Returns
Defined in
set_m_materials
▸ set_m_materials(m_materials
): void
Parameters
Name | Type |
---|---|
m_materials | tMaterialArray |
Returns
void
Defined in
get_m_anchors
▸ get_m_anchors(): tAnchorArray
Returns
Defined in
set_m_anchors
▸ set_m_anchors(m_anchors
): void
Parameters
Name | Type |
---|---|
m_anchors | tAnchorArray |
Returns
void
Defined in
checkLink
▸ checkLink(node0
, node1
): boolean
Parameters
Name | Type |
---|---|
node0 | number |
node1 | number |
Returns
boolean
Defined in
checkFace
▸ checkFace(node0
, node1
, node2
): boolean
Parameters
Name | Type |
---|---|
node0 | number |
node1 | number |
node2 | number |
Returns
boolean
Defined in
appendMaterial
▸ appendMaterial(): Material
Returns
Defined in
appendNode
▸ appendNode(x
, m
): void
Parameters
Name | Type |
---|---|
x | btVector3 |
m | number |
Returns
void
Defined in
appendLink
▸ appendLink(node0
, node1
, mat
, bcheckexist
): void
Parameters
Name | Type |
---|---|
node0 | number |
node1 | number |
mat | Material |
bcheckexist | boolean |
Returns
void
Defined in
appendFace
▸ appendFace(node0
, node1
, node2
, mat
): void
Parameters
Name | Type |
---|---|
node0 | number |
node1 | number |
node2 | number |
mat | Material |
Returns
void
Defined in
appendTetra
▸ appendTetra(node0
, node1
, node2
, node3
, mat
): void
Parameters
Name | Type |
---|---|
node0 | number |
node1 | number |
node2 | number |
node3 | number |
mat | Material |
Returns
void
Defined in
appendAnchor
▸ appendAnchor(node
, body
, disableCollisionBetweenLinkedBodies
, influence
): void
Parameters
Name | Type |
---|---|
node | number |
body | btRigidBody |
disableCollisionBetweenLinkedBodies | boolean |
influence | number |
Returns
void
Defined in
addForce
▸ addForce(force
): void
Parameters
Name | Type |
---|---|
force | btVector3 |
Returns
void
Defined in
▸ addForce(force
, node
): void
Parameters
Name | Type |
---|---|
force | btVector3 |
node | number |
Returns
void
Defined in
addAeroForceToNode
▸ addAeroForceToNode(windVelocity
, nodeIndex
): void
Parameters
Name | Type |
---|---|
windVelocity | btVector3 |
nodeIndex | number |
Returns
void
Defined in
getTotalMass
▸ getTotalMass(): number
Returns
number
Defined in
setTotalMass
▸ setTotalMass(mass
, fromfaces
): void
Parameters
Name | Type |
---|---|
mass | number |
fromfaces | boolean |
Returns
void
Defined in
setMass
▸ setMass(node
, mass
): void
Parameters
Name | Type |
---|---|
node | number |
mass | number |
Returns
void
Defined in
transform
▸ transform(trs
): void
Parameters
Name | Type |
---|---|
trs | btTransform |
Returns
void
Defined in
translate
▸ translate(trs
): void
Parameters
Name | Type |
---|---|
trs | btVector3 |
Returns
void
Defined in
rotate
▸ rotate(rot
): void
Parameters
Name | Type |
---|---|
rot | btQuaternion |
Returns
void
Defined in
scale
▸ scale(scl
): void
Parameters
Name | Type |
---|---|
scl | btVector3 |
Returns
void
Defined in
generateClusters
▸ generateClusters(k
, maxiterations?
): number
Parameters
Name | Type |
---|---|
k | number |
maxiterations? | number |
Returns
number
Defined in
generateBendingConstraints
▸ generateBendingConstraints(distance
, mat
): number
Parameters
Name | Type |
---|---|
distance | number |
mat | Material |
Returns
number
Defined in
upcast
▸ upcast(colObj
): btSoftBody
Parameters
Name | Type |
---|---|
colObj | btCollisionObject |