INNER CODE UNIT · Rust
wish
dust-engine/dust · crates/character/src/lib.rs:240
let wish = yaw * input * character.walk_speed * sprint_multiplier;
let rotation = transform.rotation;
let filter = self_filter(entity, &children);
let config = MoveAndSlideConfig::default();
let skin_width = move_and_slide.length_unit.0 * config.skin_width;
// Ground probe: a short downward sweep (`ground_probe` plus the skin
// width), so any hit is within reach. `MoveHitData` distances are not
// used: `cast_move` reports the cast's maximum length as
// `collision_distance`, not the hit's.
let touching = move_and_slide.cast_move(
collider,
start,
rotation,
Vec3::NEG_Y * character.ground_probe,
skin_width,
&filter,
);