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:17
bool crouching
Crouch while set: the capsule shortens to crouchHeight, its feet where they were.
Definition character_controller.h:63
glm::vec3 climbNormal
Out of the face climbed, world space; level part counts.
Definition character_controller.h:54
float stepTargetY
Read-only: world Y the feet are climbing to.
Definition character_controller.h:72
float knockbackDrag
How fast a shove's horizontal speed bleeds off, m/s^2; zero leaves it to steering.
Definition character_controller.h:34
glm::vec3 groundNormal
Read-only: its normal; world up when airborne.
Definition character_controller.h:74
float stepTime
Read-only: seconds the current climb has run.
Definition character_controller.h:73
float walkSpeed
Read-only: horizontal speed its steering left, m/s.
Definition character_controller.h:67
float maxSlopeAngle
Degrees; a steeper surface holds nothing up.
Definition character_controller.h:24
float climbSpeed
Up or down a face, m/s.
Definition character_controller.h:55
float stepHeight
Tallest obstacle, in metres, the character mounts instead of stopping at; zero disables it.
Definition character_controller.h:42
float acceleration
How fast velocity closes on moveInput, m/s^2.
Definition character_controller.h:22
bool jumpRequested
Cleared each tick this end simulates, honoured or not.
Definition character_controller.h:19
bool climbing
Held to a face being climbed instead of by gravity, for the tick it is set.
Definition character_controller.h:53
bool crouched
Read-only: the capsule is short, by crouching or a low ceiling.
Definition character_controller.h:85
float groundSpin
Read-only: how fast that turns about up, rad/s, for a view.
Definition character_controller.h:83
glm::vec3 moveInput
Desired horizontal velocity, world space, m/s.
Definition character_controller.h:18
float jumpSpeed
Upward speed a jump starts at, m/s.
Definition character_controller.h:21
float airControl
Fraction of acceleration available while airborne.
Definition character_controller.h:23
bool grounded
Read-only: on a surface within maxSlopeAngle.
Definition character_controller.h:66
glm::vec3 groundVelocity
Read-only: how fast what it stands on carries its feet, m/s, which steering is relative to.
Definition character_controller.h:82
bool stepping
Read-only: mounting something this tick.
Definition character_controller.h:71
float crouchHeight
The capsule's whole height crouched, caps included, metres.
Definition character_controller.h:64
float standingHalfHeight
Read-only: the capsule's halfHeight standing, kept while crouched.
Definition character_controller.h:86