Bad performance or I get stuck inside something

Post Reply
Mind In A Box
Posts: 7
Joined: Thu Jul 15, 2010 10:42 am

Bad performance or I get stuck inside something

Post by Mind In A Box »

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
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?
Post Reply