Skip to content

KinematicActor

Class

Source: KinematicActor.h

Inherits from: PhysicsActor

Description

A physics body moved via script/manual velocity with collision detection.

Kinematic actors are not affected by world gravity or forces but can detect and react to collisions during movement. They provide methods like moveAndSlide for complex character movement.

Inheritance

PhysicsActorKinematicActor

Methods

inline bool is_on_ceiling() const

Description:

Returns true if the body collided with the ceiling.

inline bool is_on_floor() const

Description:

Returns true if the body collided with the floor.

inline bool is_on_wall() const

Description:

Returns true if the body collided with a wall.

Released under the MIT License.