Page 1 of 1

Separating axis Theorem rotation issue

Posted: Thu Apr 03, 2014 10:15 am
by nickyc95
Hello there,

I am trying to get SAT working within my 2d game using Windows 8 and DirectX (DirectXTK).

However i have run into an issue which I cannot figure out.

(I have uploaded a video to youtube that demonstrates the issue)

When the boxes are AABB the collision works great, when i rotate the boxes the axis "flys" off and the boxes dont collide properly because of this.


YOUTUBE LINK : https://www.youtube.com/watch?v=I7Nh0j7 ... e=youtu.be
(IGNORE THE WHITE BOXES TO THE LEFT OF THE SCREEN)

If anyone has any ideas about what could be causing this please let me know. Also if you would like to see the code, please post and tell me.

Thanks!

Re: Separating axis Theorem rotation issue

Posted: Thu Apr 03, 2014 5:10 pm
by dandymcgee
Obviously you're messing up a transform somewhere. Code would definitely be helpful.