Update content vectors to numerics (#17759)
This commit is contained in:
@@ -42,7 +42,7 @@ public sealed class ListeningSystem : EntitySystem
|
||||
|
||||
// range checks
|
||||
// TODO proper speech occlusion
|
||||
var distance = (sourcePos - _xforms.GetWorldPosition(xform, xformQuery)).LengthSquared;
|
||||
var distance = (sourcePos - _xforms.GetWorldPosition(xform, xformQuery)).LengthSquared();
|
||||
if (distance > listener.Range * listener.Range)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user