Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualP0jahn

Posted 07 January 2013 - 03:03 PM

So, I have a missile that is rotated every frame so it is facing the target. I want to add a trailer behind this missile. I am having trouble getting the right coordinates.

First, it looks like this:
[attachment=13118:known.png]
All the coordinates of the rectangle is known at this point.
Then I rotate this missile with a known angle, and it may look like this:
[attachment=13119:unknown.png]
At this point, all the coordinates to the rectangle are lost.

How do I get them?

#1P0jahn

Posted 07 January 2013 - 03:00 PM

So, I have a missile that is rotated every frame so it is facing the target. I want to add a trailer behind this missile. I am having trouble getting the right coordinates.

 

First, it looks like this:

[attachment=13118:known.png]

All the coordinates of the rectangle is known at this point.

Then I rotate this missile with a known angle, and it may look like this:

[attachment=13119:unknown.png]

At this point, all the coordinates to the rectangle is lost.

 

How do I get them?


PARTNERS