Jump to content
  • Advertisement
Sign in to follow this  
Hcwool

Smooth Terrain, Suitable Collision Detection and a physics library?

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

Ok, So this is my first post :)

Today I have 3 questions:
Note: I'm making a 2D game using OpenGL and c++

1.in my game I need a way to make "smooth" terrain I think using the midpoint algorithm is the best way? Right?

2. If I have "smooth" terrain how would I do collision, I understand regular bounding box collision but I don't think that would pass for this.

3. Should I use a physics engine like Box2D or Chipmunk for collision detection/gravity/just simplicity.

Thnx :)

Share this post


Link to post
Share on other sites
Advertisement
Your questions are in the wrong order. You should ask about physics libraries before anything else.
Use a physics API. Bullet has a [font=courier new,courier,monospace]btHeightfieldTerrainShape [/font]collision shape for this purpose (not sure about the naming though).

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!