Class ConstraintComponentBase
- Namespace
 - Stride.BepuPhysics.Constraints
 
- Assembly
 - Stride.BepuPhysics.dll
 
[DataContract(Inherited = true)]
[DefaultEntityComponentProcessor(typeof(ConstraintProcessor), ExecutionMode = ExecutionMode.Runtime)]
[ComponentCategory("Physics - Bepu Constraint")]
public abstract class ConstraintComponentBase : EntityComponent, IIdentifiable
  - Inheritance
 - 
      objectConstraintComponentBase
 
- Implements
 
- Derived
 
- Inherited Members
 
Constructors
ConstraintComponentBase(int)
protected ConstraintComponentBase(int bodies)
  Parameters
bodiesint
Fields
Logger
protected static Logger Logger
  Field Value
Properties
Attached
Whether this constraint is in a valid state and actively constraining its targets.
public abstract bool Attached { get; }
  Property Value
Remarks
May not be attached if it is not in a scene, when not Enabled, when any of its target is null, not in a scene or in a different simulation
Bodies
public ReadOnlySpan<BodyComponent?> Bodies { get; }
  Property Value
Enabled
public bool Enabled { get; set; }
  Property Value
this[int]
protected BodyComponent? this[int i] { get; set; }
  Parameters
iint
Property Value
Methods
BodiesChanged()
protected abstract void BodiesChanged()