Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Division By Zero in operator '/'. #7

Open
Tubbles opened this issue Jan 4, 2020 · 1 comment
Open

Division By Zero in operator '/'. #7

Tubbles opened this issue Jan 4, 2020 · 1 comment

Comments

@Tubbles
Copy link

Tubbles commented Jan 4, 2020

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

@Bauxitedev
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants