![]() |
AireEngine
A 3D Open-World Game Engine
|
#include <playerController.h>
Public Member Functions | |
| PlayerController (Rigidbody *rigidbody, Camera *cam, Window *aWindow, Config *config) | |
| PlayerController ()=default | |
| Default PlayerController constructor. | |
| void | update (bool aDebug) |
A class for defining a player controller. Takes input from a user and translates it into actions that can be applied to a Rigidbody and Camera
| PlayerController::PlayerController | ( | Rigidbody * | rigidbody, |
| Camera * | cam, | ||
| Window * | aWindow, | ||
| Config * | config ) |
PlayerController constructor Creates a player defined by a rigidbody and camera which takes inputs
| rb | rigidbody for the player |
| cam | camera for the player perspective |
| aWindow | the openGL window for inputs |

Update function to update the player state based on key presses
| aDebug | If set to true run in debug movement (flight) |

