azalea_physics::collision

Function move_colliding

Source
pub fn move_colliding(
    _mover_type: &MoverType,
    movement: &Vec3,
    world: &Instance,
    position: &mut Mut<'_, Position>,
    physics: &mut Physics,
) -> Result<(), MoveEntityError>
Expand description

Move an entity by a given delta, checking for collisions.