Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Objects passing trough walls when using sparky's - Slide Collision

Author
Message
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 20th Mar 2009 22:52
It seems that, when ever my "player object" meets a corner, where the floor and the wall join, it tends to slip trough them. Do you guys have any idea why does this happen? Any chance i can fix it?
vocebello
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location: Toronto, Canada
Posted: 21st Mar 2009 00:56
Can you provide your source code so we can see where you may have gone wrong?

[ freelance DarkGDK coder ]
zapakitul
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: In my world
Posted: 21st Mar 2009 07:00 Edited at: 21st Mar 2009 07:01
Sure thing. This is the collision function i am using:

The level has been setup as:

Any ideas?
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 21st Mar 2009 13:22
Your wrote 'if (collide > 1)' when it should be: 'if (collide)'

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!

Login to post a reply

Server time is: 2024-09-30 21:33:47
Your offset time is: 2024-09-30 21:33:47