#Spaceship

1 messages · Page 1 of 1 (latest)

slate palm
#

Making a thread 😅 @golden frost

golden frost
#

Thank you!

slate palm
#

Hmm

slate palm
golden frost
#

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.

slate palm
#

is the z axis up and down or left and right

golden frost
#

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.

slate palm
#

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

golden frost
#

THANK YOU.

slate palm
#

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

golden frost
#

it did!!

#

Thank you so much. I've been trying to get this working for several days now.

slate palm
#

No problem!

#

Good luck on the rest of your game! 🎉