Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Getting a relative position from a rotation object?(Math)

$
0
0
Im only in Honors Algebra II right now and have no idea how to do this. Basically I have a character that rotates with the mouse. I need the position that is relatively to the left and a little up from the character.

I already have the rotation angle if it helps. Also, here is a bad visual reprensentation to further clarify.

C is the character, o is the position im trying to get. Each C is rotating 90 degrees clockwise. As you can see, the o spins with the C from a distance. I need a formula to get the position of the o.

o         o
  C     C       C       C
                  o   o



Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>