Skip to content

Class: btGeneric6DofSpringConstraint

Ammo.btGeneric6DofSpringConstraint

Hierarchy

Constructors

Methods

Constructors

constructor

new btGeneric6DofSpringConstraint(rbA, rbB, frameInA, frameInB, useLinearFrameReferenceFrameA): btGeneric6DofSpringConstraint

Parameters

NameType
rbAbtRigidBody
rbBbtRigidBody
frameInAbtTransform
frameInBbtTransform
useLinearFrameReferenceFrameAboolean

Returns

btGeneric6DofSpringConstraint

Overrides

btGeneric6DofConstraint.constructor

Defined in

packages/ammo/ammo.d.ts:569

new btGeneric6DofSpringConstraint(rbB, frameInB, useLinearFrameReferenceFrameB): btGeneric6DofSpringConstraint

Parameters

NameType
rbBbtRigidBody
frameInBbtTransform
useLinearFrameReferenceFrameBboolean

Returns

btGeneric6DofSpringConstraint

Overrides

btGeneric6DofConstraint.constructor

Defined in

packages/ammo/ammo.d.ts:570

Methods

enableFeedback

enableFeedback(needsFeedback): void

Parameters

NameType
needsFeedbackboolean

Returns

void

Inherited from

btGeneric6DofConstraint.enableFeedback

Defined in

packages/ammo/ammo.d.ts:542


getBreakingImpulseThreshold

getBreakingImpulseThreshold(): number

Returns

number

Inherited from

btGeneric6DofConstraint.getBreakingImpulseThreshold

Defined in

packages/ammo/ammo.d.ts:543


setBreakingImpulseThreshold

setBreakingImpulseThreshold(threshold): void

Parameters

NameType
thresholdnumber

Returns

void

Inherited from

btGeneric6DofConstraint.setBreakingImpulseThreshold

Defined in

packages/ammo/ammo.d.ts:544


getParam

getParam(num, axis): number

Parameters

NameType
numnumber
axisnumber

Returns

number

Inherited from

btGeneric6DofConstraint.getParam

Defined in

packages/ammo/ammo.d.ts:545


setParam

setParam(num, value, axis): void

Parameters

NameType
numnumber
valuenumber
axisnumber

Returns

void

Inherited from

btGeneric6DofConstraint.setParam

Defined in

packages/ammo/ammo.d.ts:546


setLinearLowerLimit

setLinearLowerLimit(linearLower): void

Parameters

NameType
linearLowerbtVector3

Returns

void

Inherited from

btGeneric6DofConstraint.setLinearLowerLimit

Defined in

packages/ammo/ammo.d.ts:562


setLinearUpperLimit

setLinearUpperLimit(linearUpper): void

Parameters

NameType
linearUpperbtVector3

Returns

void

Inherited from

btGeneric6DofConstraint.setLinearUpperLimit

Defined in

packages/ammo/ammo.d.ts:563


setAngularLowerLimit

setAngularLowerLimit(angularLower): void

Parameters

NameType
angularLowerbtVector3

Returns

void

Inherited from

btGeneric6DofConstraint.setAngularLowerLimit

Defined in

packages/ammo/ammo.d.ts:564


setAngularUpperLimit

setAngularUpperLimit(angularUpper): void

Parameters

NameType
angularUpperbtVector3

Returns

void

Inherited from

btGeneric6DofConstraint.setAngularUpperLimit

Defined in

packages/ammo/ammo.d.ts:565


getFrameOffsetA

getFrameOffsetA(): btTransform

Returns

btTransform

Inherited from

btGeneric6DofConstraint.getFrameOffsetA

Defined in

packages/ammo/ammo.d.ts:566


enableSpring

enableSpring(index, onOff): void

Parameters

NameType
indexnumber
onOffboolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:571


setStiffness

setStiffness(index, stiffness): void

Parameters

NameType
indexnumber
stiffnessnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:572


setDamping

setDamping(index, damping): void

Parameters

NameType
indexnumber
dampingnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:573


setEquilibriumPoint

setEquilibriumPoint(index, val): void

Parameters

NameType
indexnumber
valnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:574

setEquilibriumPoint(index): void

Parameters

NameType
indexnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:575

setEquilibriumPoint(): void

Returns

void

Defined in

packages/ammo/ammo.d.ts:576

Released under the MIT License