[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Chipmunk Physics • View topic - Collision is not detected !!!!

Collision is not detected !!!!

Discuss any Chipmunk bugs here.

Collision is not detected !!!!

Postby uhotspot » Fri Jan 23, 2009 12:56 am

uhotspot
 
Posts: 4
Joined: Fri Jan 23, 2009 12:41 am

Re: Collision is not detected !!!!

Postby slembcke » Fri Jan 23, 2009 1:12 pm

Without actually plotting it out to check, I'd assume that you have a concave polygon. If you want to do that, you'll need to split it into multiple convex polygons.

(Also, please refrain from double posting.)
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Collision is not detected !!!!

Postby uhotspot » Fri Jan 23, 2009 3:54 pm

No actually it is a convex polygon !!
And sorry about the double posting. I though I have posted the first one in a wrong section.

Thanks.
uhotspot
 
Posts: 4
Joined: Fri Jan 23, 2009 12:41 am

Re: Collision is not detected !!!!

Postby uhotspot » Wed Jan 28, 2009 1:08 pm

I think I found the answer myself. If you define the verts in a counter clock wise order starting from the third quarter.
I mean you have to define the points in the following order:

(-a, -b), (-c, d), (e, f), (g, -h)

and then it works. At least it did for mine !
uhotspot
 
Posts: 4
Joined: Fri Jan 23, 2009 12:41 am

Re: Collision is not detected !!!!

Postby uhotspot » Wed Jan 28, 2009 1:15 pm

Sorry let me correct myself. The ponts have to be define in a clock wise order and it is not important which vert you start at.
uhotspot
 
Posts: 4
Joined: Fri Jan 23, 2009 12:41 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests