Class LinearAxisMotorConstraintComponent
- Namespace
 - Stride.BepuPhysics.Constraints
 
- Assembly
 - Stride.BepuPhysics.dll
 
[DataContract]
[DefaultEntityComponentProcessor(typeof(ConstraintProcessor), ExecutionMode = ExecutionMode.Runtime)]
[ComponentCategory("Physics - Bepu Constraint")]
public sealed class LinearAxisMotorConstraintComponent : TwoBodyConstraintComponent<LinearAxisMotor>, IIdentifiable, IMotor, IWithTwoLocalOffset, ITwoBody
  - Inheritance
 - 
      objectConstraintComponent<LinearAxisMotor>TwoBodyConstraintComponent<LinearAxisMotor>LinearAxisMotorConstraintComponent
 
- Implements
 
- Inherited Members
 
Constructors
LinearAxisMotorConstraintComponent()
public LinearAxisMotorConstraintComponent()
  Properties
LocalAxis
public Vector3 LocalAxis { get; set; }
  Property Value
LocalOffsetA
Offset from the center of body A to its attachment in A's local space.
public Vector3 LocalOffsetA { get; set; }
  Property Value
LocalOffsetB
Offset from the center of body B to its attachment in B's local space.
public Vector3 LocalOffsetB { get; set; }
  Property Value
MotorDamping
Mass-scaled damping constant, How rigid the constraint is.
public float MotorDamping { get; set; }
  Property Value
Remarks
If you want to simulate a viscous damping coefficient of D with an object of mass M, set this damping value to D / M.
MotorMaximumForce
Maximum amount of force the motor can apply in one unit of time.
public float MotorMaximumForce { get; set; }
  Property Value
TargetVelocity
public float TargetVelocity { get; set; }