ixfx
    Preparing search index...
    • A force that orients things according to direction of travel.

      Under the hood, it applies: angularForce, angleFromAccelerationForce, and angleFromVelocityForce

      Parameters

      • interpolationAmt: number = 0.5

      Returns ForceFn<ForceAffected>

      A function that can be applied to a thing to set its angle, angularVelocity and angularAcceleration based on its acceleration and velocity