Strata - v1.4.10
    Preparing search index...

    Function calculateImpulse

    • Calculate an impulse to apply based on desired velocity change

      Parameters

      • currentVelocity: Vector3

        Current velocity vector

      • targetVelocity: Vector3

        Target velocity vector

      • mass: number

        Object mass

      Returns Vector3

      Impulse vector to apply