ECE 2036 Project
Dependencies: mbed wave_player 4DGL-uLCD-SE
physics.h
00001 #pragma once 00002 00003 /** 00004 * The main state structure for the game. 00005 * This structure holds all the global state for the game, and is updated during 00006 * the game loop. When you implement the "jump back" feature, this is the 00007 * structure you need to save/restore. 00008 */ 00009 struct Physics { 00010 float px, py; // Ball position 00011 float vx, vy; // Ball velocity 00012 float ax, ay; // Ball acceleration 00013 }; 00014 00015 /** 00016 * Performs one step of Forward Euler integration, given a time step delta. 00017 * 00018 * @param[out] out The structure to store the result of the integration. 00019 * @param[in] in The current state of the system. 00020 * @param[in] delta The time step, in seconds.s 00021 */ 00022 void forward_euler(Physics* state, float delta);
Generated on Fri Jul 15 2022 16:19:36 by 1.7.2