This might be a general math question, so excuse me if it doesn't belong here.
I have an airplane that flies around the screen. Pressing the W key will make it counterclockwise, and pressing the S key will make it rotate clockwise. When I press space, it shoots bullets. However, as it stands, the bullets begin at the top left corner of the image.
My question is, how do I find a coordinate point (specifically, x33 y10) on the image (so if the image was at x400 y300, the point would be x433 y310), regardless of the rotation?
If that wasn't very clear, consider this image: https://dl.dropbox.com/u/56274235/planeexample.png (Blown up for convenience.)
I want to find the green dot, regardless of the facing of the plane. How do I do that?
Chuckleluck 0 Light Poster
Taywin 312 Posting Virtuoso
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Chuckleluck 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.