[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/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 - Poly-Poly collision bug (using Pymunk 4.0.0)

Poly-Poly collision bug (using Pymunk 4.0.0)

Discuss any Chipmunk bugs here.

Poly-Poly collision bug (using Pymunk 4.0.0)

Postby icefox » Sun Jul 06, 2014 6:05 pm

icefox
 
Posts: 2
Joined: Sun Jul 06, 2014 5:45 pm

Re: Poly-Poly collision bug (using Pymunk 4.0.0)

Postby icefox » Sun Jul 06, 2014 11:10 pm

Well, a friend helped me figure out the problem... I'm passing line segments in to Poly(), not corners of the poly, so instead of a square it's really making an octagon with four sides of length 0. Presumably this causes some excitement when it comes time to calculate the normals for those sides, or something. It might not be a bad idea to have a check for this in Chipmunk, when you have it compiled in debug mode at least.

Still, it's entertaining to watch the video.
icefox
 
Posts: 2
Joined: Sun Jul 06, 2014 5:45 pm

Re: Poly-Poly collision bug (using Pymunk 4.0.0)

Postby viblo » Tue Jul 08, 2014 11:45 am

http://www.pymunk.org - A python library built on top of Chipmunk to let you easily get cool 2d physics in your python game/app
viblo
 
Posts: 206
Joined: Tue Aug 21, 2007 3:12 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests

cron