Objects pushing through

View previous topic View next topic Go down

Objects pushing through

Post  iphoniac on Fri Feb 13, 2009 3:19 pm

I'm having that problem with objects falling too fast and pushing through walls. I've tried the FPS tweak but I'm still having that. The scene is quite simple with no more than a hundred or two of triangles but after loading objects, they move too fast for a while until physics syncing.

I just want to know if there's another solution. I'm using 1.3.1, by the way.

Cheers

iphoniac

Posts : 62
Join date : 2008-12-11

View user profile http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Re: Objects pushing through

Post  Admin on Fri Feb 13, 2009 3:57 pm

Maybe increase the collision margin, simply add a user property to the objects named "margin" type float.

Admin
Admin

Posts : 10
Join date : 2008-08-26

View user profile http://forum.sio2interactive.com

Back to top Go down

Re: Objects pushing through

Post  gtmacdonald on Fri Feb 13, 2009 4:09 pm

I had similar issues. My scene is very simple so I was able to step the simulation twice per frame instead of two, which seems to have stopped things from pushing through. Playing with the scale or margin didn't help for me.

When I was looking at this I came across something in the bullet code that said if you only step once per frame (which I think is the default), you have to update at fixed time intervals. That might be worth a try if you can't afford an extra sub sample.

BTW, I'm using 1.3.1.

-Greg

gtmacdonald

Posts : 9
Join date : 2008-12-11

View user profile

Back to top Go down

Re: Objects pushing through

Post  sio2interactive on Fri Feb 13, 2009 4:13 pm

True, another good way to prevent that is to increase the simulation step:

Code:


      sio2PhysicRender( sio2->_SIO2physic,
                sio2->_SIO2window->d_time, 2 );

avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Objects pushing through

Post  iphoniac on Sat Feb 14, 2009 4:25 am

Setting simulation step to 2 solved the problem.

Thanks!

Cheers.

iphoniac

Posts : 62
Join date : 2008-12-11

View user profile http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Re: Objects pushing through

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum