Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
PlayerControllerComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "scene/Component.h"
4#include "physics/KinematicCharacterController.h"
5#include <memory>
6
7namespace eng
8{
10 {
12
13 public:
14 void Init() override;
15 void Update(float deltaTime) override;
16 bool OnGround() const;
17
18 private:
19 float m_sensitivity = 15.0f;
20 float m_moveSpeed = 50.0f;
21 float m_xRot = 0.0f;
22 float m_yRot = 0.0f;
23 std::unique_ptr<KinematicCharacterController> m_kinematicController;
24 };
25}
void Update(float deltaTime) override
#define COMPONENT(ComponentClass)
Definition Component.h:105