Keeping rotation between two objects

Posted by user99 on Game Development See other posts from Game Development or by user99
Published on 2012-09-26T01:58:53Z Indexed on 2012/09/26 3:50 UTC
Read the original article Hit count: 303

Filed under:
|

In my XNA game I have two objects that collide. When the first object collides with the other it is able to latch on to it and move it about the world. I am having a problem with the math here (Math isn't my strong point). I currently have the second object latch on to the first and move around with it, but I cannot get it to keep it's original direction. So, if the object is facing up it should keep this direction relative to how it is being rotated with the original item.

enter image description here

Any tips on how I could best to achieve this?

© Game Development or respective owner

Related posts about XNA

Related posts about rotation