Method CreatePrismatic
CreatePrismatic(BodyFrame, BodyFrame, FloatRange)
Create a Prismatic joint.
Declaration
public static PhysicsJoint CreatePrismatic(BodyFrame bodyAFromJoint, BodyFrame bodyBFromJoint, Math.FloatRange distanceOnAxis)
Parameters
| Type | Name | Description |
|---|---|---|
| BodyFrame | bodyAFromJoint | Specifies the anchor point and axis of rotation in the space of body A. |
| BodyFrame | bodyBFromJoint | Specifies the target point and axis of alignment in the space of body B. |
| Math.FloatRange | distanceOnAxis | The minimum required and maximum possible distance between the two anchor points along their aligned axes. |
Returns
| Type | Description |
|---|---|
| PhysicsJoint | A Constraint. |