Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
CharacterController.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glm/glm.hpp>
4
5namespace Physics::Component {
10 float maxSlopeAngle = 50.0f;
12 float maxStepHeight = 0.3f;
14 float gravityFactor = 1.0f;
16 float mass = 70.0f;
18 glm::vec3 linearVelocity{0.0f, 0.0f, 0.0f};
19};
20
21} // namespace Physics::Component
Definition BoxCollider.hpp:27
Component representing a character controller, which allows for easy character movement and collision...
Definition CharacterController.hpp:8
float gravityFactor
Factor controlling how much gravity affects the character (1.0 = normal gravity, 0....
Definition CharacterController.hpp:14
float mass
Mass of the character (used for physics interactions).
Definition CharacterController.hpp:16
float maxStepHeight
Maximum height of steps that the character can climb.
Definition CharacterController.hpp:12
glm::vec3 linearVelocity
Current linear velocity of the character (in world space).
Definition CharacterController.hpp:18
float maxSlopeAngle
Maximum slope angle (in degrees) that the character can walk up.
Definition CharacterController.hpp:10