Struct OneBodyLinearMotorFunctions
- Namespace
- BepuPhysics.Constraints
- Assembly
- BepuPhysics.dll
public struct OneBodyLinearMotorFunctions : IOneBodyConstraintFunctions<OneBodyLinearMotorPrestepData, 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
IncrementallyUpdateForSubstep(in Vector<float>, in BodyVelocityWide, ref OneBodyLinearMotorPrestepData)
public static void IncrementallyUpdateForSubstep(in Vector<float> dt, in BodyVelocityWide wsvA, ref OneBodyLinearMotorPrestepData prestepData)
Parameters
dt
Vector<float>wsvA
BodyVelocityWideprestepData
OneBodyLinearMotorPrestepData
Solve(in Vector3Wide, in QuaternionWide, in BodyInertiaWide, float, float, ref OneBodyLinearMotorPrestepData, ref Vector3Wide, ref BodyVelocityWide)
public static void Solve(in Vector3Wide positionA, in QuaternionWide orientationA, in BodyInertiaWide inertiaA, float dt, float inverseDt, ref OneBodyLinearMotorPrestepData prestep, ref Vector3Wide accumulatedImpulses, ref BodyVelocityWide wsvA)
Parameters
positionA
Vector3WideorientationA
QuaternionWideinertiaA
BodyInertiaWidedt
floatinverseDt
floatprestep
OneBodyLinearMotorPrestepDataaccumulatedImpulses
Vector3WidewsvA
BodyVelocityWide
WarmStart(in Vector3Wide, in QuaternionWide, in BodyInertiaWide, ref OneBodyLinearMotorPrestepData, ref Vector3Wide, ref BodyVelocityWide)
public static void WarmStart(in Vector3Wide positionA, in QuaternionWide orientationA, in BodyInertiaWide inertiaA, ref OneBodyLinearMotorPrestepData prestep, ref Vector3Wide accumulatedImpulses, ref BodyVelocityWide wsvA)
Parameters
positionA
Vector3WideorientationA
QuaternionWideinertiaA
BodyInertiaWideprestep
OneBodyLinearMotorPrestepDataaccumulatedImpulses
Vector3WidewsvA
BodyVelocityWide