#Spaceship
1 messages · Page 1 of 1 (latest)
Thank you!
Hmm
If the space ship’s rotation is 0 does it point east?
After making the change with mouse position as you described for me, if I put my mouse anywhere below my spaceship at angle 0, it faces left, if I put my mouse anywhere above, it faces right.
after rotating 90 degrees, it is the exact opposite. Behind the ship goes right, and in front of the ship goes left.
is the z axis up and down or left and right
Z is up and down on a 2D vector.
X is left/right. Y is depth.
The axis is important to me as it is an input for the server to read, so it can rotate the turret.
Can’t figure out why it’s splitting like that weirdly. Do me a favor, what happens if you swap the 2 arguments of the Atan2
In my head, it’s technically wrong since z axis is up and down… but if it fixes the inverted, then it’s a pretty easy fix from there
Oh that’s cool that actually worked