Chipmunk 5.3.0 is out!

Official forum for the Chipmunk2D Physics Library.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Chipmunk 5.3.0 is out!

Post by slembcke »

First of all, I've attempted to say a million times, but iterating the spatial hashes is just a plain bad idea. You should be iterating your game objects and updating your sprites to match the rigid bodies. Not using an awkward callback to iterate over collision shapes and update sprites from the rigid bodies attached to the collision shape. That said, it still should work just fine.

Are you running trunk code or 5.3.0 from the tarball? Neither of those two line numbers make a lot of sense from the code in the tarball. The only pointer dereference in the top function would be a null set pointer which isn't really possible from a properly initialized spacial hash. The line from the second function isn't the line that is calling the top function.

Could you run it in the debugger to verify which lines are being called?
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Paul10
Posts: 17
Joined: Sat Jul 31, 2010 8:27 am
Contact:

Re: Chipmunk 5.3.0 is out!

Post by Paul10 »

I'll try to debug it. I'm using the static library, so we'll see how that goes.

Yea, I've seen posts on not using the hash to iterate etc...I'm new to Chipmunk so I figured it would be fine with the small number of objects I have.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Chipmunk 5.3.0 is out!

Post by slembcke »

If you used the iphonestatic.command script to build the library, the simulator code should have full debug symbols including source access.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Chipmunk 5.3.0 is out!

Post by slembcke »

We made a fun/cheesy promotional video for chipmunk that shows off a bunch of games that various people have made using the engine:
http://www.youtube.com/watch?v=z_Sx9N39KHk
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
pat
Posts: 53
Joined: Tue Jul 20, 2010 7:55 pm
Contact:

Re: Chipmunk 5.3.0 is out!

Post by pat »

slembcke wrote:We made a fun/cheesy promotional video for chipmunk that shows off a bunch of games that various people have made using the engine:
http://www.youtube.com/watch?v=z_Sx9N39KHk
Ah i love anamanaguchi! Great video

Btw, one thing thats confusing about the demo when it says use keys a-s to switch between demos, i thought at first that meant intervally. like s would be next a previous. Just a tought maybe could say abc..qrs or a thru s . just a thought
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Chipmunk 5.3.0 is out!

Post by slembcke »

Just released 5.3.1 with some minors stuff:
CHANGES SINCE 5.3.0:
  • NEW: Added a brand new tutorial for Objective-Chipmunk: SimpleObjectiveChipmunk that can be found in the Objective-Chipmunk folder.
  • NEW: Proper API docs for Objective-Chipmunk.
  • NEW: Updated the included Objective-Chipmunk library.
  • FIX: Fixed a rare memory crash in the sensor demo.
  • FIX: Fixed some warnings that users submitted.
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 30 guests