10#ifndef KCHARACTERCONTROLLER_H
11#define KCHARACTERCONTROLLER_H
kQuat getRotation() const
Returns the character's current world-space orientation.
~kCharacterController()
Destroys the controller, releasing any underlying Jolt character.
bool isOnGround() const
True when the character is standing on walkable ground.
void uninit()
Removes the character from the physics system.
void setPosition(const kVec3 &position)
Teleports the character to a world-space position.
void setRotation(const kQuat &rotation)
Sets the character's world-space orientation.
kVec3 getPosition() const
Returns the character's current world-space position (capsule feet origin).
kVec3 getLinearVelocity() const
Returns the character's current world-space velocity (m/s).
void setLinearVelocity(const kVec3 &velocity)
Sets the character's world-space velocity (m/s).
kCharacterController()
Constructs an uninitialised character controller; call init() before use.
bool init(void *physicsSystem, const kCharacterControllerDesc &desc)
Initialises the Jolt character.
void update(float deltaTime)
Per-step maintenance (Jolt PostSimulation). Called by kPhysicsManager::update() after the world steps...
Core type aliases, enumerations, structs, and utility functions used throughout the engine.
Symbol visibility / linkage macro for the Kemena3D library.
#define KEMENA3D_API
Definition kexport.h:35
Top-level Kemena3D engine namespace.
Definition kanimation.h:23
glm::quat kQuat
Unit quaternion.
Definition kdatatype.h:40
glm::vec3 kVec3
3-component float vector.
Definition kdatatype.h:33
Editor-authored description of a character controller.
Definition kcharactercontroller.h:26
kQuat rotation
Initial world-space orientation.
Definition kcharactercontroller.h:36
float radius
Capsule radius.
Definition kcharactercontroller.h:27
float slopeLimit
Maximum walkable slope, in degrees.
Definition kcharactercontroller.h:32
float friction
Surface friction.
Definition kcharactercontroller.h:30
float height
Total capsule height (feet to head).
Definition kcharactercontroller.h:28
float gravityFactor
Multiplier on world gravity.
Definition kcharactercontroller.h:31
kVec3 position
Initial world-space position (capsule feet origin).
Definition kcharactercontroller.h:35
float mass
Body mass in kg.
Definition kcharactercontroller.h:29
float stepHeight
Reserved for step-up handling.
Definition kcharactercontroller.h:33