Module move_and_slide

Module move_and_slide 

Source
Expand description

Contains the move and slide algorithm and utilities for kinematic character controllers.

See the documentation of MoveAndSlide for more information.

Structs§

DepenetrationConfig
Configuration for MoveAndSlide::depenetrate.
MoveAndSlide
A SystemParam for the move and slide algorithm, also known as collide and slide or step slide.
MoveAndSlideConfig
Configuration for MoveAndSlide::move_and_slide.
MoveAndSlideHitData
Data related to a hit during MoveAndSlide::move_and_slide.
MoveAndSlideOutput
Output from MoveAndSlide::move_and_slide.
MoveHitData
Data related to a hit during MoveAndSlide::cast_move.

Enums§

MoveAndSlideHitResponse
Indicates how to handle a hit detected during MoveAndSlide::move_and_slide.

Constants§

COS_5_DEGREES
Cosine of 5 degrees.

Functions§

project_velocity
Projects input velocity v onto the planes defined by the given normals. This ensures that velocity does not point into any of the planes, but along them.
project_velocity_bruteforce
Projects input velocity v onto the planes defined by the given normals. This ensures that velocity does not point into any of the planes, but along them.