Jump to content
  • Advertisement
Sign in to follow this  

Problems with SAT

This topic is 5192 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I finished the code for separate axes theoren collision detection and after some testing I found out that it dosen't work in some cases. And now I have some questions: 1.) I have 2 objects(A & B) with a position vector and an quaternion for the orientation. Now I want to translate the vertices of A into the objectspace of B: NEWAVector = BOrientation.GetConjugatedQuaternion().Rotate(APosition - BPosition + AOrientation.Rotate(AVector)); Rotate: (pVector = Vector to rotate) Quaternion fHelp = (*this) * Quaternion(pVector, 1) * GetConjugatedQuaternion(); return Vector(fHelp.mX, fHelp.mY, fHelp.mZ); GetConjugatedQuaternion(): return Quaternion(-mX, -mY, -mZ, mW); I have same other questions, but tomorrow I will check the code again and I hope I will find the errors then on my owne. (I can't concentrate anymore :-( ) Berion

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!