Method Slider
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
Slider(Body, Body, Vector3, Vector3)
Creates a slider between two bodies along a world-space direction.
public static PrismaticJointDefinition Slider(Body bodyA, Body bodyB, Vector3 worldAnchor, Vector3 worldAxis)Parameters
bodyABody-
The body the slider is anchored to.
bodyBBody-
The body that slides.
worldAnchorVector3-
The point where the translation reads zero, in world space.
worldAxisVector3-
The direction of travel, in world space.
Returns
- PrismaticJointDefinition
-
The definition.
Remarks
A prismatic joint slides along its frame x axis, so the axis given here is placed there rather than on z.