meteorite icon indicating copy to clipboard operation
meteorite copied to clipboard

Division By Zero in operator '/'.

Open Tubbles opened this issue 5 years ago • 1 comments
trafficstars

I cloned the game and tried it out but got an error while playing: I'm standing very close to a turret that tries to shoot at me. Division By Zero in operator '/'.

res://scripts/enemies/turret.gd:39:
var pitch = PI/2+atan(sqrt(pow(look_at_vec.x, 2) + pow(look_at_vec.z,2))/look_at_vec.y)

locals:

pos.x = -25.868
pos.y = 7
pos.z = -6.593
look_at_vec.x = 0.132
look_at_vec.y = 0
look_at_vec.z = -2.593
look_at_vec_2d.x = 0.132
look_at_vec_2d.y = -2.593
pitch.x = 0.132
pitch.y = 0
pitch.z = -2.593

Running Godot v3.1.2.stable.official

Tubbles avatar Jan 04 '20 13:01 Tubbles

The game currently only works on Godot 3.0, I'll have to port it when I recover from COVID.

Bauxitedev avatar Jun 17 '20 13:06 Bauxitedev