[Solved] Problem with sliding body against triangle mesh

cj3j
Posts: 8
Joined: Wed Nov 20, 2013 6:40 am

[Solved] Problem with sliding body against triangle mesh

Post by cj3j »

I'm experiencing an undesirable effect when a rigid body slides along a floor into an upward-curved wall. Rather than sliding up the curve as expected, the body will (most of the time) bounce off as if it hit a flat wall. Occasionally the body does successfully slide up the curve as expected. I've attached a screenshot of the area.

I created a similar curve using a series of convex shapes which doesn't exhibit the bad behavior, so I think it's a problem with triangle mesh collision. Any ideas?

Image
Last edited by cj3j on Mon Dec 02, 2013 10:53 pm, edited 1 time in total.
DannyChapman
Posts: 84
Joined: Sun Jan 07, 2007 4:29 pm
Location: Oxford, England

Re: Problem with sliding rigid body against triangle mesh

Post by DannyChapman »

Do a search for btInternalEdgeUtility, which should do what you want:

http://www.bulletphysics.org/Bullet/php ... mit=Search
cj3j
Posts: 8
Joined: Wed Nov 20, 2013 6:40 am

Re: Problem with sliding rigid body against triangle mesh

Post by cj3j »

Absolutely perfrect, thanks!