Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I've got randomly generated terrain which is stored in a indices and vertex buffer. How do I go about using this for collision in BEPU? It seems I can do it with a Mesh but it would be a waste to convert it to a Mesh :/.

share|improve this question
    
did you found answer? I'm having same problem –  Neomex May 3 '12 at 14:52
add comment

1 Answer

If it is a traditional terrain (i.e. generated from a heightmap), all you need to do is pass the constructor for BepuPhysics.Collidable.Terrain an array of heights, then provide a world matrix. If your "terrain" allows for concaves, then you will need to use a Mesh.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.