|
Engine²
Open-source game engine written in C++.
|
Component representing a character controller, which allows for easy character movement and collision handling. More...
#include <CharacterController.hpp>
Public Attributes | |
| float | maxSlopeAngle = 50.0f |
| Maximum slope angle (in degrees) that the character can walk up. | |
| float | maxStepHeight = 0.3f |
| Maximum height of steps that the character can climb. | |
| float | gravityFactor = 1.0f |
| Factor controlling how much gravity affects the character (1.0 = normal gravity, 0.0 = no gravity). | |
| float | mass = 70.0f |
| Mass of the character (used for physics interactions). | |
| glm::vec3 | linearVelocity {0.0f, 0.0f, 0.0f} |
| Current linear velocity of the character (in world space). | |
Component representing a character controller, which allows for easy character movement and collision handling.
| float Physics::Component::CharacterController::gravityFactor = 1.0f |
Factor controlling how much gravity affects the character (1.0 = normal gravity, 0.0 = no gravity).
| glm::vec3 Physics::Component::CharacterController::linearVelocity {0.0f, 0.0f, 0.0f} |
Current linear velocity of the character (in world space).
| float Physics::Component::CharacterController::mass = 70.0f |
Mass of the character (used for physics interactions).
| float Physics::Component::CharacterController::maxSlopeAngle = 50.0f |
Maximum slope angle (in degrees) that the character can walk up.
| float Physics::Component::CharacterController::maxStepHeight = 0.3f |
Maximum height of steps that the character can climb.