Jump to content
  • Advertisement
Sign in to follow this  
Chris_J_H

xnacollision structure general transform function versions

This topic is 1977 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

Help! - I've been busy replacing my custom collision volumes with the xnacollison.h versions to make use of the xnamath.h SIMD functionality... and only just noticed that it doesn't provide the general transform functions for these volumes (ie. passing in a CXMMATRIX instead of the broken down contributions: translation, rotations etc. I now read that the directxcollision library has these functions but I am running on Windows 7 (DirectX June10 SDK) so cannot access it. The 4 functions I need are the (c++) equivalents of:

xnacollision.h : TransformSphere(), TransformAxisAlignedBox(), TransformOrientedBox(), TransformFrustum()

Does anyone have the source for general transform versions of these functions handy that they could let me have - to save me reinventing the wheel (and probably a lot less efficiently...)?

Share this post


Link to post
Share on other sites
Advertisement

What you need is in DirectXCollision.h and DirectXCollision.inl,but there are a few functions that have changed from xnamath to DirectXMath(if I remember correctly,some xnamath functions that weren't templated are now templated in DirectXMath) [attachment=13333:Desktop.rar]
Also you can still DL the Windows 8 kit on Win7:
http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx

Share this post


Link to post
Share on other sites

Thanks MrHeisenberg - I did not know you could use the Windows 8 SDK on Windows 7. Not sure I want to install it though - maybe I'll write my own functions to avoid having to do that.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!