Skip to content

Class: btHingeConstraint

Ammo.btHingeConstraint

Hierarchy

Constructors

Methods

Constructors

constructor

new btHingeConstraint(rbA, rbB, pivotInA, pivotInB, axisInA, axisInB, useReferenceFrameA?): btHingeConstraint

Parameters

NameType
rbAbtRigidBody
rbBbtRigidBody
pivotInAbtVector3
pivotInBbtVector3
axisInAbtVector3
axisInBbtVector3
useReferenceFrameA?boolean

Returns

btHingeConstraint

Overrides

btTypedConstraint.constructor

Defined in

packages/ammo/ammo.d.ts:594

new btHingeConstraint(rbA, rbB, rbAFrame, rbBFrame, useReferenceFrameA?): btHingeConstraint

Parameters

NameType
rbAbtRigidBody
rbBbtRigidBody
rbAFramebtTransform
rbBFramebtTransform
useReferenceFrameA?boolean

Returns

btHingeConstraint

Overrides

btTypedConstraint.constructor

Defined in

packages/ammo/ammo.d.ts:595

new btHingeConstraint(rbA, rbAFrame, useReferenceFrameA?): btHingeConstraint

Parameters

NameType
rbAbtRigidBody
rbAFramebtTransform
useReferenceFrameA?boolean

Returns

btHingeConstraint

Overrides

btTypedConstraint.constructor

Defined in

packages/ammo/ammo.d.ts:596

Methods

enableFeedback

enableFeedback(needsFeedback): void

Parameters

NameType
needsFeedbackboolean

Returns

void

Inherited from

btTypedConstraint.enableFeedback

Defined in

packages/ammo/ammo.d.ts:542


getBreakingImpulseThreshold

getBreakingImpulseThreshold(): number

Returns

number

Inherited from

btTypedConstraint.getBreakingImpulseThreshold

Defined in

packages/ammo/ammo.d.ts:543


setBreakingImpulseThreshold

setBreakingImpulseThreshold(threshold): void

Parameters

NameType
thresholdnumber

Returns

void

Inherited from

btTypedConstraint.setBreakingImpulseThreshold

Defined in

packages/ammo/ammo.d.ts:544


getParam

getParam(num, axis): number

Parameters

NameType
numnumber
axisnumber

Returns

number

Inherited from

btTypedConstraint.getParam

Defined in

packages/ammo/ammo.d.ts:545


setParam

setParam(num, value, axis): void

Parameters

NameType
numnumber
valuenumber
axisnumber

Returns

void

Inherited from

btTypedConstraint.setParam

Defined in

packages/ammo/ammo.d.ts:546


setLimit

setLimit(low, high, softness, biasFactor, relaxationFactor?): void

Parameters

NameType
lownumber
highnumber
softnessnumber
biasFactornumber
relaxationFactor?number

Returns

void

Defined in

packages/ammo/ammo.d.ts:597


enableAngularMotor

enableAngularMotor(enableMotor, targetVelocity, maxMotorImpulse): void

Parameters

NameType
enableMotorboolean
targetVelocitynumber
maxMotorImpulsenumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:598


setAngularOnly

setAngularOnly(angularOnly): void

Parameters

NameType
angularOnlyboolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:599


enableMotor

enableMotor(enableMotor): void

Parameters

NameType
enableMotorboolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:600


setMaxMotorImpulse

setMaxMotorImpulse(maxMotorImpulse): void

Parameters

NameType
maxMotorImpulsenumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:601


setMotorTarget

setMotorTarget(targetAngle, dt): void

Parameters

NameType
targetAnglenumber
dtnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:602

Released under the MIT License