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
Smooth Terrain, Suitable Collision Detection and a physics library?
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).
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).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement