class
HingeJointBuilder
public sealed class HingeJointBuilder : PhysicsJointBuilder Provides ability to generate a hinge joint for a Model at runtime.
Properties
| Name | Type | Description |
|---|---|---|
EnableTwistLimit | Boolean | Whether the hinge enforces a twist angle limit. |
TwistLimit | Vector2 | The minimum and maximum allowed twist angles (degrees). |
EnableMotor | Boolean | Whether the hinge's angular motor is enabled. |
TargetVelocity | Vector3 | Target angular velocity for the motor. |
MaxTorque | Single | Maximum torque the motor may apply. |
Methods
HingeJointBuilder WithTwistLimit(Single min, Single max) HingeJointBuilder WithTargetVelocity(Vector3 v) HingeJointBuilder WithMaxTorque(Single v)