I just started working with bullet. (Actually, I had a relatively hard time understanding stepSimulation function and its related arguments.)
I began with "helloWorld" tutorial, however, I have found a small issue with calculation of the falling height.
I have 2 questions:
1) With the default parameters of the helloworld script (fall height =50m and g= -10), first I tried with:
Code: Select all
dynamicsWorld->stepSimulation(1,0);
I get this results for the first lines:
Code: Select all
sphere height: 40
sphere height: 20
sphere height: -10
sphere height: -1.2
.
.
.
sphere height: 45
sphere height: 30
sphere height: 5
...
Why there is such difference?
2) if I run the following command:
Code: Select all
dynamicsWorld->stepSimulation(2,0);
the results look like:
Code: Select all
sphere height: 10
sphere height: -70
sphere height: -13.2
sphere height: -1.84
sphere height: -1.84
.
.
.
sphere height: -1.84
and Why it does not continue to fall and continuously decrease its height, i.e. to go deeper!
Regards,
Ehsan