Class: btHingeConstraint
Ammo.btHingeConstraint
Hierarchy
↳
btHingeConstraint
Constructors
Methods
- enableFeedback
- getBreakingImpulseThreshold
- setBreakingImpulseThreshold
- getParam
- setParam
- setLimit
- enableAngularMotor
- setAngularOnly
- enableMotor
- setMaxMotorImpulse
- setMotorTarget
Constructors
constructor
• new btHingeConstraint(rbA
, rbB
, pivotInA
, pivotInB
, axisInA
, axisInB
, useReferenceFrameA?
): btHingeConstraint
Parameters
Name | Type |
---|---|
rbA | btRigidBody |
rbB | btRigidBody |
pivotInA | btVector3 |
pivotInB | btVector3 |
axisInA | btVector3 |
axisInB | btVector3 |
useReferenceFrameA? | boolean |
Returns
Overrides
Defined in
• new btHingeConstraint(rbA
, rbB
, rbAFrame
, rbBFrame
, useReferenceFrameA?
): btHingeConstraint
Parameters
Name | Type |
---|---|
rbA | btRigidBody |
rbB | btRigidBody |
rbAFrame | btTransform |
rbBFrame | btTransform |
useReferenceFrameA? | boolean |
Returns
Overrides
btTypedConstraint.constructor
Defined in
• new btHingeConstraint(rbA
, rbAFrame
, useReferenceFrameA?
): btHingeConstraint
Parameters
Name | Type |
---|---|
rbA | btRigidBody |
rbAFrame | btTransform |
useReferenceFrameA? | 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
setLimit
▸ setLimit(low
, high
, softness
, biasFactor
, relaxationFactor?
): void
Parameters
Name | Type |
---|---|
low | number |
high | number |
softness | number |
biasFactor | number |
relaxationFactor? | number |
Returns
void
Defined in
enableAngularMotor
▸ enableAngularMotor(enableMotor
, targetVelocity
, maxMotorImpulse
): void
Parameters
Name | Type |
---|---|
enableMotor | boolean |
targetVelocity | number |
maxMotorImpulse | number |
Returns
void
Defined in
setAngularOnly
▸ setAngularOnly(angularOnly
): void
Parameters
Name | Type |
---|---|
angularOnly | boolean |
Returns
void
Defined in
enableMotor
▸ enableMotor(enableMotor
): void
Parameters
Name | Type |
---|---|
enableMotor | boolean |
Returns
void
Defined in
setMaxMotorImpulse
▸ setMaxMotorImpulse(maxMotorImpulse
): void
Parameters
Name | Type |
---|---|
maxMotorImpulse | number |
Returns
void
Defined in
setMotorTarget
▸ setMotorTarget(targetAngle
, dt
): void
Parameters
Name | Type |
---|---|
targetAngle | number |
dt | number |
Returns
void