Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Physics::Component::CharacterController Struct Reference

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).

Detailed Description

Component representing a character controller, which allows for easy character movement and collision handling.

Member Data Documentation

◆ gravityFactor

float Physics::Component::CharacterController::gravityFactor = 1.0f

Factor controlling how much gravity affects the character (1.0 = normal gravity, 0.0 = no gravity).

◆ linearVelocity

glm::vec3 Physics::Component::CharacterController::linearVelocity {0.0f, 0.0f, 0.0f}

Current linear velocity of the character (in world space).

◆ mass

float Physics::Component::CharacterController::mass = 70.0f

Mass of the character (used for physics interactions).

◆ maxSlopeAngle

float Physics::Component::CharacterController::maxSlopeAngle = 50.0f

Maximum slope angle (in degrees) that the character can walk up.

◆ maxStepHeight

float Physics::Component::CharacterController::maxStepHeight = 0.3f

Maximum height of steps that the character can climb.


The documentation for this struct was generated from the following file: