Function computeVelocity

Compute velocity based on acceleration and current velocity

  • Parameters

    • acceleration: Point

      Acceleration

    • velocity: Point

      Velocity

    • OptionalvelocityMax: number

      If specified, velocity will be capped at this value

    Returns Point