Ejemplo n.º 1
0
/*------------------------------------------------------------------------------------------------------------------
 * -- FUNCTION: Start
 * --
 * -- DATE: January 11, 2018
 * --
 * -- DESIGNER:   Michael Goll
 * --
 * -- PROGRAMMER: Michael Goll
 * --
 * -- NOTES:
 * -- Initializes the various objects to call member functions.
 * -- Initializes the canvas controller to update the HUD.
 * -- Initializes the data arrays.
 * ----------------------------------------------------------------------------------------------------------------------*/
    void Start()
    {
        //------- LAB #6 Additions -------
        moving     = false;
        initial    = true;
        numUpdates = 0;
        fixedTime  = Time.fixedDeltaTime;

        //calculate different acceleration directions
        thrust.x = PhysicsCalculator.calculateXThrust(force, angle);
        thrust.z = PhysicsCalculator.calculateZThrust(force, angle);

        thrustAngle.x = PhysicsCalculator.calculateXThrust(angularForce, angle);
        thrustAngle.z = PhysicsCalculator.calculateZThrust(angularForce, angle);
    }