AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Aire::PlayerController Class Reference

#include <playerController.h>

Public Member Functions

 PlayerController (Rigidbody *rigidbody, Camera *cam, Window *aWindow, Config *config)
 
 PlayerController ()=default
 Default PlayerController constructor.
 
void update (bool aDebug)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ PlayerController()

PlayerController::PlayerController ( Rigidbody * rigidbody,
Camera * cam,
Window * aWindow,
Config * config )

PlayerController constructor Creates a player defined by a rigidbody and camera which takes inputs

Parameters
rbrigidbody for the player
camcamera for the player perspective
aWindowthe openGL window for inputs
Here is the call graph for this function:

Member Function Documentation

◆ update()

void PlayerController::update ( bool aDebug)

Update function to update the player state based on key presses

Parameters
aDebugIf set to true run in debug movement (flight)
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: