From a82f5ca0570ff7f4f2438b707fdb58e275861e53 Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Thu, 12 Aug 2021 15:28:58 +0300 Subject: [PATCH] Add comment about fragility of solution --- common/systems/src/projectile.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/systems/src/projectile.rs b/common/systems/src/projectile.rs index daa4ac59fe..f5c4b3d4c8 100644 --- a/common/systems/src/projectile.rs +++ b/common/systems/src/projectile.rs @@ -160,6 +160,10 @@ impl<'a> System<'a> for Sys { // We offset position a little back on the way, // so if we hit non-exploadable block // we still can affect blocks around it. + // + // TODO: orientation of fallen projectile is + // fragile heuristic for direction, find more + // robust method. let projectile_direction = orientations .get(entity) .map_or_else(Vec3::zero, |ori| ori.look_vec());