Separating axis Theorem rotation issue

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
nickyc95
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 9
Joined: Wed Mar 05, 2014 11:12 am

Separating axis Theorem rotation issue

Post 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!
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: Separating axis Theorem rotation issue

Post by dandymcgee »

Obviously you're messing up a transform somewhere. Code would definitely be helpful.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply