Skip to main content

clip_move

Function clip_move 

Source
pub fn clip_move(
    sectors: &[Sector],
    walls: &[Wall],
    obstacles: &[CircleObstacle],
    x: f64,
    y: f64,
    z: f64,
    sect: i32,
    dx: f64,
    dy: f64,
    m: &Mover,
) -> (f64, f64, i32, Hit)
Expand description

Moves (x, y) by (dx, dy) with sliding collision. Returns the new position, sector and the first obstacle touched.