CLASS v1.8.0

physics::CharacterBody

kn::physics::CharacterBody

Inherits kn::physics::Body

Declared in kraken/physics/bodies/CharacterBody.hpp

Reference

C++ API
enum MotionMode

No description in the source header.

ValueInitializerDescription
GroundedAutomatic—
FloatingAutomatic—

motionMode

variable
enum kn::physics::CharacterBody::MotionMode motionMode = MotionMode::Grounded

No description in the source header.

velocity

variable
Vec2 velocity

No description in the source header.

mass

variable
float mass = 1.0f

No description in the source header.

maxSpeed

variable
float maxSpeed = 6.0f

No description in the source header.

acceleration

variable
float acceleration = 20.0f

No description in the source header.

friction

variable
float friction = 8.0f

No description in the source header.

stopSpeed

variable
float stopSpeed = 3.0f

No description in the source header.

airSteer

variable
float airSteer = 0.2f

No description in the source header.

CharacterBody(World &world)

No description in the source header.

~CharacterBody()=default

No description in the source header.

moveAndSlide

function
void moveAndSlide(double delta=-1.0)

No description in the source header.

isOnFloor

function
bool isOnFloor() const

No description in the source header.

isOnCeiling

function
bool isOnCeiling() const

No description in the source header.

isOnWall

function
bool isOnWall() const

No description in the source header.

void setCapsuleShape(const class Capsule &capsule)

No description in the source header.

class Capsule getCapsuleShape() const

No description in the source header.

Find your next step

Start typing to search the manual.