@@ -64,7 +64,7 @@ static float headLerp = STAND_HEIGHT;
6464static Vector2 lean = { 0 };
6565
6666//----------------------------------------------------------------------------------
67- // Module functions declaration
67+ // Module Functions Declaration
6868//----------------------------------------------------------------------------------
6969static void DrawLevel (void );
7070static void UpdateCameraFPS (Camera * camera );
@@ -172,9 +172,10 @@ int main(void)
172172}
173173
174174//----------------------------------------------------------------------------------
175- // Module functions definition
175+ // Module Functions Definition
176176//----------------------------------------------------------------------------------
177- void UpdateBody (Body * body , float rot , char side , char forward , bool jumpPressed , bool crouchHold )
177+ // Update body considering current world state
178+ void UpdateBody (Body * body , float rot , char side , char forward , bool jumpPressed , bool crouchHold )
178179{
179180 Vector2 input = (Vector2 ){ (float )side , (float )- forward };
180181
@@ -236,7 +237,7 @@ void UpdateBody(Body* body, float rot, char side, char forward, bool jumpPressed
236237 }
237238}
238239
239- // Update camera
240+ // Update camera for FPS behaviour
240241static void UpdateCameraFPS (Camera * camera )
241242{
242243 const Vector3 up = (Vector3 ){ 0.0f , 1.0f , 0.0f };
0 commit comments