Method CreateLimitedHinge
CreateLimitedHinge(BodyFrame, BodyFrame, FloatRange)
Create a LimitedHinge joint.
Declaration
public static PhysicsJoint CreateLimitedHinge(BodyFrame bodyAFromJoint, BodyFrame bodyBFromJoint, Math.FloatRange angularRange)
Parameters
| Type | Name | Description |
|---|---|---|
| BodyFrame | bodyAFromJoint | Specifies the anchor point, axis of rotation, and rest orientation in the space of body A. |
| BodyFrame | bodyBFromJoint | Specifies the target point, axis of alignment, and reference orientation in the space of body B. |
| Math.FloatRange | angularRange | The minimum required and maximum possible angle of rotation about the aligned axes. |
Returns
| Type | Description |
|---|---|
| PhysicsJoint | The new limited hinge joint. |