Class: btGeneric6DofSpringConstraint
Ammo.btGeneric6DofSpringConstraint
Hierarchy
↳
btGeneric6DofSpringConstraint
Constructors
Methods
- enableFeedback
- getBreakingImpulseThreshold
- setBreakingImpulseThreshold
- getParam
- setParam
- setLinearLowerLimit
- setLinearUpperLimit
- setAngularLowerLimit
- setAngularUpperLimit
- getFrameOffsetA
- enableSpring
- setStiffness
- setDamping
- setEquilibriumPoint
Constructors
constructor
• new btGeneric6DofSpringConstraint(rbA
, rbB
, frameInA
, frameInB
, useLinearFrameReferenceFrameA
): btGeneric6DofSpringConstraint
Parameters
Name | Type |
---|---|
rbA | btRigidBody |
rbB | btRigidBody |
frameInA | btTransform |
frameInB | btTransform |
useLinearFrameReferenceFrameA | boolean |
Returns
Overrides
btGeneric6DofConstraint.constructor
Defined in
• new btGeneric6DofSpringConstraint(rbB
, frameInB
, useLinearFrameReferenceFrameB
): btGeneric6DofSpringConstraint
Parameters
Name | Type |
---|---|
rbB | btRigidBody |
frameInB | btTransform |
useLinearFrameReferenceFrameB | boolean |
Returns
Overrides
btGeneric6DofConstraint.constructor
Defined in
Methods
enableFeedback
▸ enableFeedback(needsFeedback
): void
Parameters
Name | Type |
---|---|
needsFeedback | boolean |
Returns
void
Inherited from
btGeneric6DofConstraint.enableFeedback
Defined in
getBreakingImpulseThreshold
▸ getBreakingImpulseThreshold(): number
Returns
number
Inherited from
btGeneric6DofConstraint.getBreakingImpulseThreshold
Defined in
setBreakingImpulseThreshold
▸ setBreakingImpulseThreshold(threshold
): void
Parameters
Name | Type |
---|---|
threshold | number |
Returns
void
Inherited from
btGeneric6DofConstraint.setBreakingImpulseThreshold
Defined in
getParam
▸ getParam(num
, axis
): number
Parameters
Name | Type |
---|---|
num | number |
axis | number |
Returns
number
Inherited from
btGeneric6DofConstraint.getParam
Defined in
setParam
▸ setParam(num
, value
, axis
): void
Parameters
Name | Type |
---|---|
num | number |
value | number |
axis | number |
Returns
void
Inherited from
btGeneric6DofConstraint.setParam
Defined in
setLinearLowerLimit
▸ setLinearLowerLimit(linearLower
): void
Parameters
Name | Type |
---|---|
linearLower | btVector3 |
Returns
void
Inherited from
btGeneric6DofConstraint.setLinearLowerLimit
Defined in
setLinearUpperLimit
▸ setLinearUpperLimit(linearUpper
): void
Parameters
Name | Type |
---|---|
linearUpper | btVector3 |
Returns
void
Inherited from
btGeneric6DofConstraint.setLinearUpperLimit
Defined in
setAngularLowerLimit
▸ setAngularLowerLimit(angularLower
): void
Parameters
Name | Type |
---|---|
angularLower | btVector3 |
Returns
void
Inherited from
btGeneric6DofConstraint.setAngularLowerLimit
Defined in
setAngularUpperLimit
▸ setAngularUpperLimit(angularUpper
): void
Parameters
Name | Type |
---|---|
angularUpper | btVector3 |
Returns
void
Inherited from
btGeneric6DofConstraint.setAngularUpperLimit
Defined in
getFrameOffsetA
▸ getFrameOffsetA(): btTransform
Returns
Inherited from
btGeneric6DofConstraint.getFrameOffsetA
Defined in
enableSpring
▸ enableSpring(index
, onOff
): void
Parameters
Name | Type |
---|---|
index | number |
onOff | boolean |
Returns
void
Defined in
setStiffness
▸ setStiffness(index
, stiffness
): void
Parameters
Name | Type |
---|---|
index | number |
stiffness | number |
Returns
void
Defined in
setDamping
▸ setDamping(index
, damping
): void
Parameters
Name | Type |
---|---|
index | number |
damping | number |
Returns
void
Defined in
setEquilibriumPoint
▸ setEquilibriumPoint(index
, val
): void
Parameters
Name | Type |
---|---|
index | number |
val | number |
Returns
void
Defined in
▸ setEquilibriumPoint(index
): void
Parameters
Name | Type |
---|---|
index | number |
Returns
void
Defined in
▸ setEquilibriumPoint(): void
Returns
void