I run example Hello World from this page: http://www.bulletphysics.org/mediawiki- ... ello_World
and everything is OK.
but I change only this row:
btCollisionShape* fallShape = new btSphereShape(1);
from this:
btVector3 size = btVector3(1,1,1);
btCollisionShape* fallShape = new btBoxShape(size / 2);
and I have unexpected result where the box has not accurate collision with the ground
so what I missed???
results:
sphere height: 22.1917
sphere height: 21.7972
sphere height: 21.4
sphere height: 21
sphere height: 20.5972
...
...
...
sphere height: 2.72224
sphere height: 2.20835
sphere height: 1.69168
sphere height: 1.17224
sphere height: 0.650017
sphere height: 0.125018
sphere height: -0.236477
sphere height: -0.040607
sphere height: 0.152485
sphere height: 0.3428
sphere height: 0.530336
sphere height: 0.715095
sphere height: 0.897076
sphere height: 1.07628
sphere height: 1.25271
....