Kemena3D
Loading...
Searching...
No Matches
kemena::kCharacterControllerDesc Struct Reference

Editor-authored description of a character controller. More...

#include <kcharactercontroller.h>

Public Attributes

float radius = 0.3f
 Capsule radius.
float height = 1.8f
 Total capsule height (feet to head).
float mass = 80.0f
 Body mass in kg.
float friction = 0.5f
 Surface friction.
float gravityFactor = 1.0f
 Multiplier on world gravity.
float slopeLimit = 45.0f
 Maximum walkable slope, in degrees.
float stepHeight = 0.3f
 Reserved for step-up handling.
kVec3 position = kVec3(0.0f, 0.0f, 0.0f)
 Initial world-space position (capsule feet origin).
kQuat rotation = kQuat(1.0f, 0.0f, 0.0f, 0.0f)
 Initial world-space orientation.

Detailed Description

Editor-authored description of a character controller.

The capsule's origin is at the object's feet (the collision capsule is offset upward by height/2), matching how character controllers are placed in most engines.

Member Data Documentation

◆ friction

float kemena::kCharacterControllerDesc::friction = 0.5f

Surface friction.

◆ gravityFactor

float kemena::kCharacterControllerDesc::gravityFactor = 1.0f

Multiplier on world gravity.

◆ height

float kemena::kCharacterControllerDesc::height = 1.8f

Total capsule height (feet to head).

◆ mass

float kemena::kCharacterControllerDesc::mass = 80.0f

Body mass in kg.

◆ position

kVec3 kemena::kCharacterControllerDesc::position = kVec3(0.0f, 0.0f, 0.0f)

Initial world-space position (capsule feet origin).

◆ radius

float kemena::kCharacterControllerDesc::radius = 0.3f

Capsule radius.

◆ rotation

kQuat kemena::kCharacterControllerDesc::rotation = kQuat(1.0f, 0.0f, 0.0f, 0.0f)

Initial world-space orientation.

◆ slopeLimit

float kemena::kCharacterControllerDesc::slopeLimit = 45.0f

Maximum walkable slope, in degrees.

◆ stepHeight

float kemena::kCharacterControllerDesc::stepHeight = 0.3f

Reserved for step-up handling.


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