Struct OneBodyAngularMotorFunctions
- Namespace
- BepuPhysics.Constraints
- Assembly
- BepuPhysics.dll
public struct OneBodyAngularMotorFunctions : IOneBodyConstraintFunctions<OneBodyAngularMotorPrestepData, Vector3Wide>
- Implements
- Inherited Members
Properties
RequiresIncrementalSubstepUpdates
Gets whether this constraint type requires incremental updates for each substep taken beyond the first.
public static bool RequiresIncrementalSubstepUpdates { get; }
Property Value
Methods
ApplyImpulse(ref Vector3Wide, in Symmetric3x3Wide, in Vector3Wide)
public static void ApplyImpulse(ref Vector3Wide angularVelocity, in Symmetric3x3Wide impulseToVelocity, in Vector3Wide csi)
Parameters
angularVelocity
Vector3WideimpulseToVelocity
Symmetric3x3Widecsi
Vector3Wide
IncrementallyUpdateForSubstep(in Vector<float>, in BodyVelocityWide, ref OneBodyAngularMotorPrestepData)
public static void IncrementallyUpdateForSubstep(in Vector<float> dt, in BodyVelocityWide wsvA, ref OneBodyAngularMotorPrestepData prestepData)
Parameters
dt
Vector<float>wsvA
BodyVelocityWideprestepData
OneBodyAngularMotorPrestepData
Solve(in Vector3Wide, in QuaternionWide, in BodyInertiaWide, float, float, ref OneBodyAngularMotorPrestepData, ref Vector3Wide, ref BodyVelocityWide)
public static void Solve(in Vector3Wide positionA, in QuaternionWide orientationA, in BodyInertiaWide inertiaA, float dt, float inverseDt, ref OneBodyAngularMotorPrestepData prestep, ref Vector3Wide accumulatedImpulses, ref BodyVelocityWide wsvA)
Parameters
positionA
Vector3WideorientationA
QuaternionWideinertiaA
BodyInertiaWidedt
floatinverseDt
floatprestep
OneBodyAngularMotorPrestepDataaccumulatedImpulses
Vector3WidewsvA
BodyVelocityWide
WarmStart(in Vector3Wide, in QuaternionWide, in BodyInertiaWide, ref OneBodyAngularMotorPrestepData, ref Vector3Wide, ref BodyVelocityWide)
public static void WarmStart(in Vector3Wide positionA, in QuaternionWide orientationA, in BodyInertiaWide inertiaA, ref OneBodyAngularMotorPrestepData prestep, ref Vector3Wide accumulatedImpulses, ref BodyVelocityWide wsvA)
Parameters
positionA
Vector3WideorientationA
QuaternionWideinertiaA
BodyInertiaWideprestep
OneBodyAngularMotorPrestepDataaccumulatedImpulses
Vector3WidewsvA
BodyVelocityWide