Closed GoogleCodeExporter closed 9 years ago
Finally fixed here: http://code.google.com/p/bullet/source/detail?r=2431
There is an heuristic to choose a 'safeMargin' using 0.1 times a minimum
dimension.
Original comment by erwin.coumans
on 15 Sep 2011 at 6:18
Just a heads up that this fix doesn't work for the byCylinderShape constructor
because calling setSafeMargin calls setMargin which uses
m_implicitShapeDimensions internally and it hasn't been set yet.
Moving setSafeMargin(halfExtents) to the end of the constructor seems to work
ok.
Original comment by tibor.kl...@gmail.com
on 4 Oct 2012 at 10:13
Forgot to say that the same goes for btBoxShape and btBox2dShape.
Moving after m_implicitShapeDimensions is set just means that
m_implicitShapeDimensions will be set with the default margin first and then
updated with the safe margin.
Original comment by tibor.kl...@gmail.com
on 4 Oct 2012 at 10:18
Original issue reported on code.google.com by
erwin.coumans
on 2 Mar 2010 at 8:14