Struct JointMotor3D
- Namespace
- Gravitas.Constraints
- Assembly
- Gravitas.dll
Deterministic angular target-drive payload for a 3D joint.
public readonly struct JointMotor3D
- Inherited Members
Constructors
JointMotor3D(FixedQuaternion, Fixed64, Fixed64, Fixed64)
Creates an angular motor payload.
public JointMotor3D(FixedQuaternion targetLocalRotation, Fixed64 angularDriveStrength, Fixed64 angularDriveDamping, Fixed64 maximumMotorImpulse)
Parameters
targetLocalRotationFixedQuaternionangularDriveStrengthFixed64angularDriveDampingFixed64maximumMotorImpulseFixed64
Properties
AngularDriveDamping
Gets angular damping applied against relative angular velocity.
public Fixed64 AngularDriveDamping { get; }
Property Value
- Fixed64
AngularDriveStrength
Gets the deterministic spring-like angular drive strength.
public Fixed64 AngularDriveStrength { get; }
Property Value
- Fixed64
Disabled
Gets a disabled motor payload.
public static JointMotor3D Disabled { get; }
Property Value
IsEnabled
Gets whether this motor can emit solver rows.
public bool IsEnabled { get; }
Property Value
MaximumMotorImpulse
Gets the maximum absolute impulse this motor may apply per row and iteration.
public Fixed64 MaximumMotorImpulse { get; }
Property Value
- Fixed64
TargetLocalRotation
Gets the desired B-relative-to-A joint-space rotation.
public FixedQuaternion TargetLocalRotation { get; }
Property Value
- FixedQuaternion