Constraints and Static Bodies

Discuss any Chipmunk bugs here.
Post Reply
gerrit
Posts: 6
Joined: Wed Feb 24, 2010 5:53 am
Contact:

Constraints and Static Bodies

Post by gerrit »

I'm not clear if you can use NULL as a body when you create constraints, but I've found a number of places where constraints (cpPinJoint and cpRotaryLimitJoint were what I was working with) are accessing properties on the bodies without checking if they're null.

I couldn't find anything in the documentation about whether using a NULL body is supported, but I found a bunch of places where constraints *do* check if a body is null... which makes me think that it's a feature that's supposed to be.

If you'd like more info on what I found, just let me know!

As always, thanks for Chipmunk.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Constraints and Static Bodies

Post by slembcke »

Substituting NULL to mean the space's static body was a something I was going to do, but found a bunch of issues. I didn't take the NULL checks out yet, but I haven't really said that it's officially supported or documented it as a feature.

Basically it's stuck in a mostly-but-not-quite working limbo right now.
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: No registered users and 3 guests