Over-penetration bug

Discuss any Chipmunk bugs here.
Post Reply
OandO
Posts: 8
Joined: Tue Jun 04, 2013 10:48 am
Contact:

Over-penetration bug

Post by OandO »

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
Contact:

Re: Over-penetration bug

Post by OandO »

Nevermind, I'm an idiot. I made a small mistake in the rotation matrix when drawing to the screen... :oops:
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Over-penetration bug

Post by slembcke »

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/
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 23 guests