Constraints and Static Bodies

Discuss any Chipmunk bugs here.

Constraints and Static Bodies

Postby gerrit » Thu Nov 11, 2010 6:54 pm

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.
Posts: 6
Joined: Wed Feb 24, 2010 5:53 am

Re: Constraints and Static Bodies

Postby slembcke » Thu Nov 11, 2010 9:37 pm

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! ->
User avatar
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 2 guests