Page 1 of 1

What difference between Bullet and OpenGL metric system?

Posted: Thu Mar 26, 2015 4:14 pm
by Chaz
Hello. I just realize that for some shapes scaling are different.
For example, i have created BoxShape with scaling (20,20,20), but to visualize it i have to render a cube with size 40. Same thing with capsule. I have created CapsuleShape with height 2.0, and then visualize it with cylinder with height 2, but CapsuleShape much bigger than cylinder. But if I have created SphereShape with radius 5, and visualize it with sphere with the same radius then i see that size are the same for Bullet and Opengl shape.
So can someone tell me how to deal with that discrepancy?
p.s. sry for my bad english

Re: What difference between Bullet and OpenGL metric system?

Posted: Thu Mar 26, 2015 8:19 pm
by drleviathan
The constructor for btBoxShape epxects the half extents NOT the full extents. Similarly for the btCapsuleShape. Check the documentation for the box and cylinder shapes.

Re: What difference between Bullet and OpenGL metric system?

Posted: Thu Mar 26, 2015 9:06 pm
by Chaz
drleviathan wrote:The constructor for btBoxShape epxects the half extents NOT the full extents. Similarly for the btCapsuleShape. Check the documentation for the box and cylinder shapes.
senk u!