Page 1 of 1

Objects bounce on triangle mesh edges

Posted: Sat Feb 04, 2012 6:54 pm
by note173
The moving object is a constraint-based vehicle, it has springs to damp bumps on ground's surface. The ground is represented by static triangle mesh shape (bvh).
I use btInternalEdge utility, but wheels still do bounce on edges of perfectly flat triangle surface.
Maybe enabling split impulse helps a bit, but I can't state that for sure.
What can I do to minimize this annoying effect?

Re: Objects bounce on triangle mesh edges

Posted: Tue Feb 28, 2012 10:47 am
by RedToasty
Although not quite the same, I had an issue with raycast cars, driving on a flat surface the cars would suddenly get crazy collision normals back and the car would flip. I'd assume yours is a similar issue with edges.

I've sorted this by storing all of the face normals in a list, when a collision is detected it'll return a triangle index, I grab the associated face normal and return that instead. This completely sorted the crazy flipping car issues.