Jump to content
  • Advertisement
Sign in to follow this  
CrimsonGT

Using Havok's heightFieldShape with Ogre3D?

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

Wasn't sure if this should go in Math & Physics or Alternate Libraries, so I hope no one yells at me. I started implementing Havok physics into my Ogre game today, and I am using the new terrain system from 1.7 which saves the terrain data in a .dat file. After looking through all of the related demos that come with Havok, I think I understand how they do the collision mesh for terrain, but I am unsure of how exactly to implement it with Ogre. Here is link to snippet I found (easier to read as a link) http://ampaste.net/f79cbe28d From what I can tell, it should be pretty straight forward to implement. It looks like the demo's "MySampledHeightFieldShape" class has HK_FORCE_INLINE hkReal getHeightAtImpl( int x, int z ) const which I assume I would replace with Ogre's GetHeightAt() function. Sorry for the newbie questions, not really any good tutorials/snippets/documentation on Havok/Ogre, and im kind of blindly jumping into this as I have always used wrappers for Physics.

Share this post


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

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!