pub struct MoveOutcome {
pub motion: DVec3,
pub depenetration: DVec3,
pub grounded: bool,
pub hit_wall: bool,
pub hit_ceiling: bool,
pub stepped_up: bool,
pub slides: u32,
}Expand description
What one CharacterController::move_and_slide did.
Fields§
§motion: DVec3The displacement actually applied, which is the requested one minus whatever the world took away. This is what a third-person game turns the body toward, and it is world-space for the same reason the request is.
depenetration: DVec3How far the capsule was pushed out of geometry it started inside, before the move. Zero in the ordinary case.
grounded: boolWhether the character is standing on walkable ground now. Agrees with
CharacterController::is_grounded.
hit_wall: boolWhether the move was blocked by a surface too steep to stand on and not steep enough to be a ceiling.
hit_ceiling: boolWhether the move was blocked by a surface facing downward.
stepped_up: boolWhether a step was climbed.
slides: u32How many times the move was blocked and redirected. Zero means it went the whole way unobstructed.