5
\$\begingroup\$

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 :/.

\$\endgroup\$
1
  • \$\begingroup\$ did you found answer? I'm having same problem \$\endgroup\$ Commented May 3, 2012 at 14:52

1 Answer 1

1
\$\begingroup\$

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.

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.