Constraint Class
Namespace: Stride.PhysicsAssembly: Stride.Physics.dll
public class Constraint : IDisposable, IRelative
Name | Description | |
---|---|---|
Properties | ||
AppliedImpulse | Gets the applied impulse. |
|
BreakingImpulseThreshold | Gets or sets the breaking impulse threshold. |
|
Enabled | Gets or sets a value indicating whether this Constraint is enabled. |
|
RigidBodyA | Gets the rigid body a. |
|
RigidBodyB | Gets the rigid body b. |
|
Simulation | Gets the Simulation where this Constraint is being processed |
|
Methods | ||
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Properties
AppliedImpulse
Gets the applied impulse.
public float AppliedImpulse { get; }
Property Value
Type | Description |
---|---|
System.Single | The applied impulse. |
BreakingImpulseThreshold
Gets or sets the breaking impulse threshold.
public float BreakingImpulseThreshold { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The breaking impulse threshold. |
Enabled
Gets or sets a value indicating whether this Constraint is enabled.
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
RigidBodyA
Gets the rigid body a.
public RigidbodyComponent RigidBodyA { get; }
Property Value
Type | Description |
---|---|
RigidbodyComponent | The rigid body a. |
RigidBodyB
Gets the rigid body b.
public RigidbodyComponent RigidBodyB { get; }
Property Value
Type | Description |
---|---|
RigidbodyComponent | The rigid body b. |
Simulation
Gets the Simulation where this Constraint is being processed
public Simulation Simulation { get; }
Property Value
Type | Description |
---|---|
Simulation |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public virtual void Dispose()