Is calculation/rendering of AABB for Cylinder inaccurate?

allsey87
Posts: 33
Joined: Fri Oct 26, 2012 1:50 pm

Is calculation/rendering of AABB for Cylinder inaccurate?

Post by allsey87 »

I find that when working with the btCylinderShape, the AABB I'm getting is very noisy and inaccurate. Everything thing appears fine when the object is resting on one of it's flat faces, but as soon as it starts to round around, the AABB appears to pulsate and certainly not being of minimal size with respect to the location of the solid...

This can be easily replicated in BasicDemo by modifying the one line that selects to use btBoxShape by default (line 146):
- btBoxShape* colShape = new btBoxShape(btVector3(SCALING*1,SCALING*1,SCALING*1));
+ btCylinderShape* colShape = new btCylinderShape(btVector3(SCALING*1,SCALING*1,SCALING*1));

Rebuilding the demo and turning on AABB rendering using the 'a' key, shows what I am talking about, as does this video on youtube: http://www.youtube.com/watch?v=Lxv19S1Ez88

Any thoughts, advice or similar stories?
allsey87
Posts: 33
Joined: Fri Oct 26, 2012 1:50 pm

Re: Is calculation/rendering of AABB for Cylinder inaccurate

Post by allsey87 »

bump! can someone please comment on this?