Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Help with 3d math - sprites aligning with rotated objects

Author
Message
Golelorn
8
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 27th Jan 2018 14:15 Edited at: 27th Jan 2018 14:16
Hi guys,

I've run into a problem with sprite placement when I rotate an object. I am not a math wizard, and I know I somehow need to flip the x,y,z coordinates to adjust when I rotate my object to 90 degrees.

0 degrees


90 degrees


Code for the 0 degree rotation.


Appreciate any guidance.

Attachments

Login to view attachments
Golelorn
8
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 27th Jan 2018 15:34 Edited at: 27th Jan 2018 15:34
I guess, it wasn't as impossible as I thought.


Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-21 19:24:05
Your offset time is: 2024-11-21 19:24:05