Bad performance or I get stuck inside something
Posted: Thu Jul 15, 2010 10:52 am
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:
When it is like this, my player gets stuck inside the levelblocks easily (Jumping and falling is enough):
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
this doesn't happen, but the physics is horrible slow then (When many rigid bodys are around).
What can I do now?
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 I change the line to
Code: Select all
Physics.DynamicsWorld->stepSimulation(FPS.GetElapsedTime(),1000,1.0f/500.0f);
What can I do now?