Table of Contents

Class Joint

Namespace
Jitter2.Dynamics.Constraints
Assembly
Jitter2.dll

Groups constraints into a joint that can be enabled, disabled, removed, or drawn as a whole.

public class Joint : IDebugDrawable
Inheritance
Joint
Implements
Derived
Inherited Members

Properties

Constraints

Gets the constraints that make up this joint.

public ReadOnlyList<Constraint> Constraints { get; }

Property Value

ReadOnlyList<Constraint>

Methods

DebugDraw(IDebugDrawer)

Draws the object's debug visualization with the default settings.

public virtual void DebugDraw(IDebugDrawer drawer)

Parameters

drawer IDebugDrawer

Receives the lines and triangles to draw.

DebugDraw(IDebugDrawer, in DebugDrawSettings)

Draws the joint's constraints, using the joint anchor for angular guides when available.

public virtual void DebugDraw(IDebugDrawer drawer, in DebugDrawSettings settings)

Parameters

drawer IDebugDrawer
settings DebugDrawSettings

Deregister(Constraint)

Excludes a constraint from this joint without removing it from its world.

protected void Deregister(Constraint constraint)

Parameters

constraint Constraint

Disable()

Temporarily disables all constraints in this joint. For a complete removal use Remove().

public void Disable()

Enable()

Enables all constraints in this joint.

public void Enable()

Register(Constraint)

Includes a constraint in this joint. The constraint must already belong to a world.

protected void Register(Constraint constraint)

Parameters

constraint Constraint

Remove()

Removes all constraints in this joint from their world.

public void Remove()