Hello bullet community!
I've made a little platformer using Bullet and I ran into a problem.
It is this line of code I think:
Code: Select all
Physics.DynamicsWorld->stepSimulation(FPS.GetElapsedTime(),10,1.0f/60.0f);
When it is like this, my player gets stuck inside the levelblocks easily (Jumping and falling is enough):
- IGotStuck.jpg (24.35 KiB) Viewed 2288 times
And other blocks do that, too. And there is now way for the player to get out there (Without cheating).
When I change the line to
Code: Select all
Physics.DynamicsWorld->stepSimulation(FPS.GetElapsedTime(),1000,1.0f/500.0f);
this doesn't happen, but the physics is horrible slow then (When many rigid bodys are around).
What can I do now?