Class: btSliderConstraint
Ammo.btSliderConstraint
Hierarchy
↳
btSliderConstraint
Constructors
Methods
- enableFeedback
- getBreakingImpulseThreshold
- setBreakingImpulseThreshold
- getParam
- setParam
- setLowerLinLimit
- setUpperLinLimit
- setLowerAngLimit
- setUpperAngLimit
- getLinearPos
- getAngularPos
- setTargetLinMotorVelocity
- setPoweredLinMotor
- setMaxLinMotorForce
Constructors
constructor
• new btSliderConstraint(rbA
, rbB
, frameInA
, frameInB
, useLinearReferenceFrameA
): btSliderConstraint
Parameters
Name | Type |
---|---|
rbA | btRigidBody |
rbB | btRigidBody |
frameInA | btTransform |
frameInB | btTransform |
useLinearReferenceFrameA | boolean |
Returns
Overrides
Defined in
• new btSliderConstraint(rbB
, frameInB
, useLinearReferenceFrameA
): btSliderConstraint
Parameters
Name | Type |
---|---|
rbB | btRigidBody |
frameInB | btTransform |
useLinearReferenceFrameA | boolean |
Returns
Overrides
btTypedConstraint.constructor
Defined in
Methods
enableFeedback
▸ enableFeedback(needsFeedback
): void
Parameters
Name | Type |
---|---|
needsFeedback | boolean |
Returns
void
Inherited from
btTypedConstraint.enableFeedback
Defined in
getBreakingImpulseThreshold
▸ getBreakingImpulseThreshold(): number
Returns
number
Inherited from
btTypedConstraint.getBreakingImpulseThreshold
Defined in
setBreakingImpulseThreshold
▸ setBreakingImpulseThreshold(threshold
): void
Parameters
Name | Type |
---|---|
threshold | number |
Returns
void
Inherited from
btTypedConstraint.setBreakingImpulseThreshold
Defined in
getParam
▸ getParam(num
, axis
): number
Parameters
Name | Type |
---|---|
num | number |
axis | number |
Returns
number
Inherited from
Defined in
setParam
▸ setParam(num
, value
, axis
): void
Parameters
Name | Type |
---|---|
num | number |
value | number |
axis | number |
Returns
void
Inherited from
Defined in
setLowerLinLimit
▸ setLowerLinLimit(lowerLimit
): void
Parameters
Name | Type |
---|---|
lowerLimit | number |
Returns
void
Defined in
setUpperLinLimit
▸ setUpperLinLimit(upperLimit
): void
Parameters
Name | Type |
---|---|
upperLimit | number |
Returns
void
Defined in
setLowerAngLimit
▸ setLowerAngLimit(lowerAngLimit
): void
Parameters
Name | Type |
---|---|
lowerAngLimit | number |
Returns
void
Defined in
setUpperAngLimit
▸ setUpperAngLimit(upperAngLimit
): void
Parameters
Name | Type |
---|---|
upperAngLimit | number |
Returns
void
Defined in
getLinearPos
▸ getLinearPos(): number
Returns
number
Defined in
getAngularPos
▸ getAngularPos(): number
Returns
number
Defined in
setTargetLinMotorVelocity
▸ setTargetLinMotorVelocity(velocity
): void
Parameters
Name | Type |
---|---|
velocity | number |
Returns
void
Defined in
setPoweredLinMotor
▸ setPoweredLinMotor(onOff
): void
Parameters
Name | Type |
---|---|
onOff | boolean |
Returns
void
Defined in
setMaxLinMotorForce
▸ setMaxLinMotorForce(force
): void
Parameters
Name | Type |
---|---|
force | number |
Returns
void