5#include "core/reflect.h"
Turns a desired direction into velocity on a Rigidbody, and reports what the body stands on.
Definition character_controller.h:16
float stepTargetY
Read-only: world Y the feet are climbing to.
Definition character_controller.h:38
glm::vec3 groundNormal
Read-only: its normal; world up when airborne.
Definition character_controller.h:40
float stepTime
Read-only: seconds the current climb has run.
Definition character_controller.h:39
float maxSlopeAngle
Degrees; a steeper surface holds nothing up.
Definition character_controller.h:23
float stepHeight
Tallest obstacle, in metres, the character mounts instead of stopping at; zero disables it.
Definition character_controller.h:31
float acceleration
How fast velocity closes on moveInput, m/s^2.
Definition character_controller.h:21
bool jumpRequested
Cleared each tick this end simulates, honoured or not.
Definition character_controller.h:18
glm::vec3 moveInput
Desired horizontal velocity, world space, m/s.
Definition character_controller.h:17
float jumpSpeed
Upward speed a jump starts at, m/s.
Definition character_controller.h:20
float airControl
Fraction of acceleration available while airborne.
Definition character_controller.h:22
bool grounded
Read-only: on a surface within maxSlopeAngle.
Definition character_controller.h:33
bool stepping
Read-only: mounting something this tick.
Definition character_controller.h:37