cpArbiterTotalImpulse only callable from PostStep?

Discuss any Chipmunk bugs here.
Post Reply
nate
Posts: 1
Joined: Wed Feb 16, 2011 9:11 pm
Contact:

cpArbiterTotalImpulse only callable from PostStep?

Post by nate »

The documentation states that cpArbiterTotalImpulse is only safe to call from a PostStep callback. However, it seems that it should say PostSolve, not PostStep.

There is at least one binding of Chipmunk (Hipmunk) that actually enforces this restriction, apparently incorrectly. If you confirm that the documentation is wrong, I will report this to the author if that binding.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: cpArbiterTotalImpulse only callable from PostStep?

Post by slembcke »

Yes, that's definitely a mistake. Although now that I think about it, it is valid from either a post-solve or post-step callback and makes sense to call from either.

I updated the docs in trunk: http://code.google.com/p/chipmunk-physi ... xtile#1240
Though I didn't rebuild and reupload the new docs yet.
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 1 guest