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!
Separating axis Theorem rotation issue
Moderator: Coders of Rage
- dandymcgee
- 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
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!