Table of Contents

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

bodyA Body

The body the slider is anchored to.

bodyB Body

The body that slides.

worldAnchor Vector3

The point where the translation reads zero, in world space.

worldAxis Vector3

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.