Skip to content

Class: btSliderConstraint

Ammo.btSliderConstraint

Hierarchy

Constructors

Methods

Constructors

constructor

new btSliderConstraint(rbA, rbB, frameInA, frameInB, useLinearReferenceFrameA): btSliderConstraint

Parameters

NameType
rbAbtRigidBody
rbBbtRigidBody
frameInAbtTransform
frameInBbtTransform
useLinearReferenceFrameAboolean

Returns

btSliderConstraint

Overrides

btTypedConstraint.constructor

Defined in

packages/ammo/ammo.d.ts:605

new btSliderConstraint(rbB, frameInB, useLinearReferenceFrameA): btSliderConstraint

Parameters

NameType
rbBbtRigidBody
frameInBbtTransform
useLinearReferenceFrameAboolean

Returns

btSliderConstraint

Overrides

btTypedConstraint.constructor

Defined in

packages/ammo/ammo.d.ts:606

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


setLowerLinLimit

setLowerLinLimit(lowerLimit): void

Parameters

NameType
lowerLimitnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:607


setUpperLinLimit

setUpperLinLimit(upperLimit): void

Parameters

NameType
upperLimitnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:608


setLowerAngLimit

setLowerAngLimit(lowerAngLimit): void

Parameters

NameType
lowerAngLimitnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:609


setUpperAngLimit

setUpperAngLimit(upperAngLimit): void

Parameters

NameType
upperAngLimitnumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:610


getLinearPos

getLinearPos(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:611


getAngularPos

getAngularPos(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:612


setTargetLinMotorVelocity

setTargetLinMotorVelocity(velocity): void

Parameters

NameType
velocitynumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:613


setPoweredLinMotor

setPoweredLinMotor(onOff): void

Parameters

NameType
onOffboolean

Returns

void

Defined in

packages/ammo/ammo.d.ts:614


setMaxLinMotorForce

setMaxLinMotorForce(force): void

Parameters

NameType
forcenumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:615