sevivon-prototype

[RADIOACTIVE] a concept version of sevivon
git clone git://git.figbert.com/sevivon-prototype.git
Log | Files | Refs | README | LICENSE

commit 041fda4914f10f5d3834915e71c35533d2d6c6f2
parent 2a47814a854b18d9b9ee6b349e5aac736d263766
Author: FIGBERT <figbert@figbert.com>
Date:   Sun,  3 Jan 2021 22:32:05 -0800

Approximate sevivon stop based on vector length

Diffstat:
Mgodot/scripts/sevivon.gd | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/godot/scripts/sevivon.gd b/godot/scripts/sevivon.gd @@ -12,7 +12,7 @@ func _physics_process(_delta): var accel := Input.get_accelerometer() if accel.length() > ACCEL_THRESHOLD: spin(accel) - elif has_spun && !displayed_results && angular_velocity == Vector3.ZERO: + elif has_spun && !displayed_results && is_zero_approx(angular_velocity.length()): print(spin_result()) displayed_results = true elif displayed_results: