I have this piece of code where I am trying to move a spaceship around the 0 axis. It also moves up and down. However, the further I move it up, the greater the turning circle is. I have tried various methods but cannot get it to where I want it to at the moment. If anyone could give me a hint that would be great!
I tried changing those things. Still stuck on this translate function though and the hint that you gave me. Tried various additions of angles and using cosine and sine but still not working. The image is moving well, but the greater it moves from the original point, the less it spins around its origin.
Ahhh, my was issue with the translate section not with the imageMode in the end. I was overthinking it and using sine and cosine with the translate function.
Thank you so much! I really do appreciate your help (apologies for sounding so daft). I’ve been spending the last hour figuring this out.
So I have a new problem now. I am attempting to move it in the direction that it is pointing. So far, I have made some progress, but it seems to just be a roll of the dice in terms of where it is going.
Tried using this as well as adding cosine and sine to each individual component of the Location PVector but it’s not making much of a difference. Any tips here? Thanks in advance.
Update: All good! Realised that radians was causing my issue the whole time and also making my angle and int not a float was not helpful either. It now spins and moves in the correct direction