![]() |
AireEngine
A 3D Open-World Game Engine
|
#include <player.h>


Public Member Functions | |
| Player (Window *aWindow, Config *aConfig) | |
| void | update (bool aDebug) |
Public Attributes | |
| Config | config |
| Config attached to the player. | |
| PlayerController | playerController |
| Player controller that applied actions to rigid body and camera. | |
| Rigidbody * | rb |
| Rigid body handles physics. | |
| Camera | camera |
| Camera is attached to the player. | |
A class for defining a player. A player has a rigidbody, camera and a config assigned to it inside this handler which can be accessed publicly.
Player constructor Creates a player with a rigidbody, camera and config.
| aWindow | the openGL window for the player |
| (optional) | config: a config for the player, default is default config |

Update function to update the player state based on key presses
| aDebug | Flag to indicate if we are in a game debug state. |
