Fixed nested entities stuff
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user