Table of Contents

Struct JointLimit2D

Namespace
Gravitas.Constraints
Assembly
Gravitas.dll

Optional deterministic scalar limit payload for a pure 2D joint.

public readonly struct JointLimit2D
Inherited Members

Properties

Kind

Gets the active limit family.

public JointLimitKind2D Kind { get; }

Property Value

JointLimitKind2D

MaxAngle

Gets the maximum scalar relative angle in radians.

public Fixed64 MaxAngle { get; }

Property Value

Fixed64

MaxTranslation

Gets the maximum slider translation in world units.

public Fixed64 MaxTranslation { get; }

Property Value

Fixed64

MinAngle

Gets the minimum scalar relative angle in radians.

public Fixed64 MinAngle { get; }

Property Value

Fixed64

MinTranslation

Gets the minimum slider translation in world units.

public Fixed64 MinTranslation { get; }

Property Value

Fixed64

TargetDistance

Gets the target anchor distance for distance joints.

public Fixed64 TargetDistance { get; }

Property Value

Fixed64

Unrestricted

Gets an unrestricted limit payload.

public static JointLimit2D Unrestricted { get; }

Property Value

JointLimit2D

Methods

Angular(Fixed64, Fixed64)

Creates a deterministic scalar angular range.

public static JointLimit2D Angular(Fixed64 minAngle, Fixed64 maxAngle)

Parameters

minAngle Fixed64
maxAngle Fixed64

Returns

JointLimit2D

Distance(Fixed64)

Creates a deterministic distance target.

public static JointLimit2D Distance(Fixed64 targetDistance)

Parameters

targetDistance Fixed64

Returns

JointLimit2D

Slider(Fixed64, Fixed64)

Creates a deterministic prismatic slider translation range.

public static JointLimit2D Slider(Fixed64 minTranslation, Fixed64 maxTranslation)

Parameters

minTranslation Fixed64
maxTranslation Fixed64

Returns

JointLimit2D