xiangaodielian / bullet

Automatically exported from code.google.com/p/bullet
Other
0 stars 0 forks source link

btKinematicCharacterController fast moving on low frame rate #740

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. low frame rate
2.
3.

What is the expected output? What do you see instead?
The character moves too fast when the framerate is below 60fps.

What version of the product are you using? On what operating system?
2.81, svn

Please provide any additional information below.
The attached patch fixes the bug

Use setVelocityForTimeInterval to move the character

m_character->setVelocityForTimeInterval (walkDirection * walkVelocity, dt); 

Original issue reported on code.google.com by plop...@gmail.com on 26 Sep 2013 at 8:55

Attachments:

GoogleCodeExporter commented 9 years ago
Patch author: Elmar Hanlhofer

Original comment by plop...@gmail.com on 26 Sep 2013 at 8:59

GoogleCodeExporter commented 9 years ago
ok, applied in latest trunk, although not tested:
https://code.google.com/p/bullet/source/detail?r=2674

Thanks for the help!

Original comment by erwin.coumans on 1 Oct 2013 at 5:37