Add comment about fragility of solution

This commit is contained in:
juliancoffee 2021-08-12 15:28:58 +03:00
parent 86b9e2d8e6
commit a82f5ca057

View File

@ -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());