fx: rotation wrapping interaction bug

This commit is contained in:
djaidjai committed 2026-02-01 12:57:45 +01:00
1 parent 6432b709ef
commit 07f3c13fd2
3 files changed
+17 -30

No files matched your search

@@ -11,7 +11,7 @@ func enter(previous_state_path: String, data := {}) -> void:
threat = owner
func physics_update(_delta: float) -> void:
if owner.position.distance_to(threat.position) > threshold:
if owner.position.distance_to(threat.position) > threshold or threat == owner:
finished.emit(owner.fsm.States.IDLE, {})
return
owner.move(flee_from(threat.position))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.