|
Kemena3D
|
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. | |
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.
| float kemena::kCharacterControllerDesc::friction = 0.5f |
Surface friction.
| float kemena::kCharacterControllerDesc::gravityFactor = 1.0f |
Multiplier on world gravity.
| float kemena::kCharacterControllerDesc::height = 1.8f |
Total capsule height (feet to head).
| float kemena::kCharacterControllerDesc::mass = 80.0f |
Body mass in kg.
Initial world-space position (capsule feet origin).
| float kemena::kCharacterControllerDesc::radius = 0.3f |
Capsule radius.
Initial world-space orientation.
| float kemena::kCharacterControllerDesc::slopeLimit = 45.0f |
Maximum walkable slope, in degrees.
| float kemena::kCharacterControllerDesc::stepHeight = 0.3f |
Reserved for step-up handling.