Implemented Flight

This commit is contained in:
Joshua Barretto
2020-11-03 22:46:07 +00:00
parent 9e905b297a
commit 6331ad9455
11 changed files with 79 additions and 35 deletions

View File

@ -94,7 +94,7 @@ impl Route {
vol: &V,
pos: Vec3<f32>,
vel: Vec3<f32>,
traversal_cfg: TraversalConfig,
traversal_cfg: &TraversalConfig,
) -> Option<(Vec3<f32>, f32)>
where
V: BaseVol<Vox = Block> + ReadVol,
@ -364,7 +364,7 @@ impl Chaser {
} else {
self.route
.as_mut()
.and_then(|(r, _)| r.traverse(vol, pos, vel, traversal_cfg))
.and_then(|(r, _)| r.traverse(vol, pos, vel, &traversal_cfg))
}
} else {
None