Triangle collision

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Senlaar
Posts: 12
Joined: Mon Jun 22, 2020 6:11 am

Triangle collision

Post by Senlaar »

Hello!

I've been playing with triangle and mesh creation. The effects of this comment have made things a bit trickier:

//Triangle collisions and ray tests are one-sided; only tests which see the triangle as wound clockwise in right handed coordinates or counterclockwise in left handed coordinates will generate contacts.

Is there a good pattern/approach to triangles that *would* generate collision contacts from both sides? (Simplest concrete case: just sending dynamic spheres flying at static triangles from both sides.) Thanks as always!

-Senlaar
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Triangle collision

Post by Norbo »

Just the obvious one- create two triangles with the same vertices, but opposite winding.
Post Reply