Fixed nested entities stuff

This commit is contained in:
2025-05-19 16:49:44 -05:00
parent 0c5675e1b4
commit 3b9986b4ee
7 changed files with 38 additions and 36 deletions

View File

@@ -69,7 +69,7 @@ func getDirectionToFace(position:Vector3) -> Direction:
if !characterBody:
return Direction.SOUTH;
var diff = position - characterBody.position;
var diff = position - characterBody.global_position;
if abs(diff.x) > abs(diff.z):
if diff.x > 0:
return Direction.EAST;