Hi,
how would I best check for collision detection between a model and the new terrain object? I want my player to always walk on the terrain. Is there any example of this?
Hi freefly,
Are you using a particular physics system? If so does it support height map collisions (I believe JigLib, Oops, bepu, and others support this)?
If you are not using a specific physics system check out the XNA CC Heightmap Collision sample - it has an excellent example of object to height map collisions, which can be used to collide with the SunBurn terrain using its height map.
Let me know if this helps!
Follow me on Twitter – development and personal tweetsAwesome XNA Videos – Lighting, Rendering, and game videos
Hi John,
thanks for the fast reply. I check out the sample. I am not using any physics engine...I'm doing a rather simple snake game ;-).