Table of Contents

Method Hinge

Namespace
Box3D
Assembly
Box3D.NET.dll

Hinge(Body, Body, Vector3, Vector3)

Creates a hinge between two bodies about a world-space axis.

public static RevoluteJointDefinition Hinge(Body bodyA, Body bodyB, Vector3 worldAnchor, Vector3 worldAxis)

Parameters

bodyA Body

The body the hinge is anchored to, such as a door frame.

bodyB Body

The body that swings, such as the door.

worldAnchor Vector3

The hinge point, in world space.

worldAxis Vector3

The axis to turn about, in world space.

Returns

RevoluteJointDefinition

The definition.