Strata - v1.4.10
    Preparing search index...

    Function calculateForce

    • Calculate continuous force to achieve target velocity

      Parameters

      • currentVelocity: Vector3

        Current velocity

      • targetVelocity: Vector3

        Target velocity

      • mass: number

        Object mass

      • deltaTime: number

        Time step

      Returns Vector3

      Force vector to apply