Addressed review issues

This commit is contained in:
Joshua Barretto
2020-08-25 11:01:17 +01:00
parent 12ea028a3d
commit 37b45ba5f4
3 changed files with 23 additions and 32 deletions

View File

@ -418,7 +418,7 @@ impl Chaser {
});
if !walking_towards_edge {
Some(((tgt - pos) * Vec3::new(1.0, 1.0, 0.0), 0.75))
Some(((tgt - pos) * Vec3::new(1.0, 1.0, 0.0), 1.0))
} else {
None
}
@ -458,7 +458,7 @@ where
let is_walkable = |pos: &Vec3<i32>| walkable(vol, *pos);
let get_walkable_z = |pos| {
let mut z_incr = 0;
for _ in 0..128 {
for _ in 0..32 {
let test_pos = pos + Vec3::unit_z() * z_incr;
if is_walkable(&test_pos) {
return Some(test_pos);