Over-penetration bug

Discuss any Chipmunk bugs here.

Over-penetration bug

Postby OandO » Mon Jul 22, 2013 2:48 pm

Hi, somewhere in my game a bug has been introduced that causes shapes to penetrate far too much into one another, to the extent that they are sometimes passing right through. It doesn't affect every shape though, and I'm having no luck tracking down the cause. Changing the masses of the bodies, changing gravity's acceleration and changing the number iterations all have no effect, and I am not forcibly setting the position, velocity, angle etc. of any of the bodies affected.

If it helps at all, here's a video to better illustrate the problem. The physics shapes are generated by the same code that produces the renderable shapes, and the character has no such problems colliding with other shapes. The ground body is static, obviously the other two rectangles and the bodies making up the character are not.

http://www.youtube.com/watch?v=BkM-zd1UxDw
OandO
 
Posts: 8
Joined: Tue Jun 04, 2013 10:48 am

Re: Over-penetration bug

Postby OandO » Tue Jul 23, 2013 6:42 am

Nevermind, I'm an idiot. I made a small mistake in the rotation matrix when drawing to the screen... :oops:
OandO
 
Posts: 8
Joined: Tue Jun 04, 2013 10:48 am

Re: Over-penetration bug

Postby slembcke » Tue Jul 23, 2013 7:39 am

Ah, that might do it. ;)

Glad you found the issue, I wasn't really sure from looking at the video.
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


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest