fx: rotation wrapping interaction bug

This commit is contained in:
2026-02-01 12:57:45 +01:00
parent 6432b709ef
commit 07f3c13fd2
3 changed files with 17 additions and 30 deletions

View File

@@ -7,13 +7,11 @@ func enter(previous_state_path: String, data := {}) -> void:
timer.start((float)(randi() % 5)/5)
func physics_update(_delta: float) -> void:
owner.move(_delta * dir)
#owner.move(_delta * Vector3(randfn(0, 1), randfn(0, 1), 0))
owner.move(_delta * Vector3(randfn(0, 1), randfn(0, 1), 0))
func _on_timer_timeout() -> void:
if (randi() % 4 != 0):
finished.emit(owner.fsm.States.IDLE, {})
#finished.emit(owner.fsm.States.RANDOMMOVEMENT, {})
finished.emit(owner.fsm.States.RANDOMMOVEMENT, {})
else:
finished.emit(owner.fsm.States.IDLE, {})