|
Monad Engine da02fba2
> Undercity Codex_
|
First-person Quake/Half-Life-style movement controller. More...
#include <memory>#include "Constants.h"#include "Types.h"#include "physics/KinematicCharacterController.h"#include "scene/Component.h"
Include dependency graph for PlayerControllerComponent.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | mnd::PlayerControllerComponent |
Namespaces | |
| namespace | mnd |
First-person Quake/Half-Life-style movement controller.
Implements ground friction, ground/air acceleration with a per-axis wishspeed cap (the trick that enables strafe-jumping and bunny-hopping), and an optional auto-hop while the jump key is held.
Attach to a GameObject that also has a CameraComponent. Each frame Update() reads keyboard (WASD + Space) and mouse-delta input from the Engine's InputManager and drives a KinematicCharacterController.
Definition in file PlayerControllerComponent.h.