Table of Contents

Class Constraint

Namespace
Stride.Physics
Assembly
Stride.Physics.dll
public class Constraint : IDisposable, IRelative
Inheritance
Constraint
Implements
Derived
Extension Methods

Properties

AppliedImpulse

Gets the applied impulse.

public float AppliedImpulse { get; }

Property Value

float

The applied impulse.

BreakingImpulseThreshold

Gets or sets the breaking impulse threshold.

public float BreakingImpulseThreshold { get; set; }

Property Value

float

The breaking impulse threshold.

Enabled

Gets or sets a value indicating whether this Constraint is enabled.

public bool Enabled { get; set; }

Property Value

bool

true if enabled; otherwise, false.

RigidBodyA

Gets the rigid body a.

public RigidbodyComponent RigidBodyA { get; }

Property Value

RigidbodyComponent

The rigid body a.

RigidBodyB

Gets the rigid body b.

public RigidbodyComponent RigidBodyB { get; }

Property Value

RigidbodyComponent

The rigid body b.

Simulation

Gets the Simulation where this Constraint is being processed

public Simulation Simulation { get; }

Property Value

Simulation

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public virtual void Dispose()