FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Objects pushing through

4 posters

Go down

Objects pushing through Empty Objects pushing through

Post  iphoniac 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

http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Objects pushing through Empty Re: Objects pushing through

Post  Admin 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

http://forum.sio2interactive.com

Back to top Go down

Objects pushing through Empty Re: Objects pushing through

Post  gtmacdonald 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

Back to top Go down

Objects pushing through Empty Re: Objects pushing through

Post  sio2interactive 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 );

sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Objects pushing through Empty Re: Objects pushing through

Post  iphoniac 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

http://thecaveaniphonegame.blogspot.com/

Back to top Go down

Objects pushing through Empty Re: Objects pushing through

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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