Table of Contents

Class Joint

Namespace
Jitter2.Dynamics.Constraints
Assembly
Jitter2.dll

Base class for joints, which are composite constraints built from multiple Constraint instances.

public class Joint : IDebugDrawable
Inheritance
Joint
Implements
Derived
Inherited Members

Properties

Constraints

public ReadOnlyList<Constraint> Constraints { get; }

Property Value

ReadOnlyList<Constraint>

Methods

DebugDraw(IDebugDrawer)

Passes an IDebugDrawer to draw basic debug information for the object.

public virtual void DebugDraw(IDebugDrawer drawer)

Parameters

drawer IDebugDrawer

The debug drawer used for rendering debug information.

Deregister(Constraint)

Remove a constraint from the internal bookkeeping

protected void Deregister(Constraint constraint)

Parameters

constraint Constraint

Disable()

Disables all constraints that this joint is composed of temporarily. For a complete removal use Remove().

public void Disable()

Enable()

Enables all constraints that this joint is composed of.

public void Enable()

Register(Constraint)

Add a constraint to the internal bookkeeping

protected void Register(Constraint constraint)

Parameters

constraint Constraint

Remove()

Removes all constraints that this joint is composed of from the physics world.

public void Remove()