I'm using bullet in a project I'm working on. I've come across the need to find the intersection of two coplanar convex polygons outside of the bullet simulation. It occurred to me, that there might some way to accomplish this using bullet, preventing the need to implement a separate library to do this. Could anyone enlighten me if this is possible and where I might start looking to do it?
Thank you for the help!
polygon intersection
-
- Posts: 861
- Joined: Sun Jul 03, 2005 4:06 pm
- Location: Kirkland, WA
Re: polygon intersection
Clip one polygon against the side planes of the other. You can look into the Bullet/Extras folder. The SAT contribution by Simon Hobbs should contain what you are looking for.
Finally just look into the orange book by Christer Ericson. He has code in there which you can use right out of the box.
Cheers,
-Dirk
Finally just look into the orange book by Christer Ericson. He has code in there which you can use right out of the box.
Cheers,
-Dirk