What difference between Bullet and OpenGL metric system?

Post Reply
Chaz
Posts: 44
Joined: Mon Jan 12, 2015 1:36 pm

What difference between Bullet and OpenGL metric system?

Post 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
User avatar
drleviathan
Posts: 849
Joined: Tue Sep 30, 2014 6:03 pm
Location: San Francisco

Re: What difference between Bullet and OpenGL metric system?

Post 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.
Chaz
Posts: 44
Joined: Mon Jan 12, 2015 1:36 pm

Re: What difference between Bullet and OpenGL metric system?

Post 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!
Post Reply