Table of Contents

Class TwistMotorConstraintComponent

Namespace
Stride.BepuPhysics.Constraints
Assembly
Stride.BepuPhysics.dll
[DataContract]
[DefaultEntityComponentProcessor(typeof(ConstraintProcessor), ExecutionMode = ExecutionMode.Runtime)]
[ComponentCategory("Physics - Bepu Constraint")]
public sealed class TwistMotorConstraintComponent : TwoBodyConstraintComponent<TwistMotor>, IIdentifiable, ITwoBody, IMotor
Inheritance
object
TwistMotorConstraintComponent
Implements
Inherited Members

Constructors

TwistMotorConstraintComponent()

public TwistMotorConstraintComponent()

Properties

LocalAxisA

Local twist axis attached to body A

public Vector3 LocalAxisA { get; set; }

Property Value

Vector3

LocalAxisB

Local twist axis attached to body B

public Vector3 LocalAxisB { get; set; }

Property Value

Vector3

MotorDamping

Mass-scaled damping constant, How rigid the constraint is.

public float MotorDamping { get; set; }

Property Value

float

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

float

TargetVelocity

Goal relative twist velocity around the body axes

public float TargetVelocity { get; set; }

Property Value

float