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
bodyABody-
The body the hinge is anchored to, such as a door frame.
bodyBBody-
The body that swings, such as the door.
worldAnchorVector3-
The hinge point, in world space.
worldAxisVector3-
The axis to turn about, in world space.
Returns
- RevoluteJointDefinition
-
The definition.