Chipmunk 6.0 Beta

Official forum for the Chipmunk2D Physics Library.

Re: Chipmunk 6.0 Beta

Postby slembcke » Sat Apr 09, 2011 9:25 am

Oh. Yep. I'm probably missing a couple of those actually. I'll have to do a grep.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Chipmunk 6.0 Beta

Postby mobilebros » Sat Apr 09, 2011 1:03 pm

Oops, I'm late; I'll try and get this going with SpaceManager, as I'm doing all sorts of reaching internally it should be a good time. ;)
mobilebros
 
Posts: 90
Joined: Tue Aug 04, 2009 9:53 am

Re: Chipmunk 6.0 Beta

Postby viblo » Mon Apr 11, 2011 8:52 am

slembcke wrote:Oh. Yep. I'm probably missing a couple of those actually. I'll have to do a grep.


Ok :)

What about my edit? Maybe you missed it:
Found another: the asserts in cpBodySleepWithGroup that check if the bodies are sleeping when passed into the method seems wrong? Either the assert comment or a missing !.
http://www.pymunk.org - A python library built on top of Chipmunk to let you easily get cool 2d physics in your python game/app
viblo
 
Posts: 206
Joined: Tue Aug 21, 2007 3:12 pm

Re: Chipmunk 6.0 Beta

Postby slembcke » Mon Apr 11, 2011 10:21 am

Yup, that's a bug. :oops: I really need to write some more unit tests... Ugh unit tests. There are a few easily testable, high impact areas of Chipmunk that would probably save me time if I wrote unit tests for them. The tests I do have are part of Objective-Chipmunk which means they generally get left as the last thing done. Write the C code, wrap it, then maaaaybe test it. :-\
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Chipmunk 6.0 Beta

Postby akamal » Tue Apr 12, 2011 12:52 pm

I figured that some of the time, shapes do not collide with static shapes in 6.0.
i could not debug yet because its random and possibilities are around 2%
akamal
 
Posts: 15
Joined: Fri Mar 11, 2011 3:32 pm

Re: Chipmunk 6.0 Beta

Postby slembcke » Tue Apr 12, 2011 12:57 pm

Hmm. Hopefully that is not due to bugs in the AABB tree. I really hope I squashed all of those. You could try calling void cpSpaceUseSpatialHash(cpSpace *space, cpFloat dim, int count) to switch it back to using a spatial hash to see if that fixes the problem. That's probably a good place to start.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Chipmunk 6.0 Beta

Postby mobilebros » Wed Apr 13, 2011 9:13 am

Is anyone else having trouble compiling with iOS. cpBBTree.c will not compile all because of these lines:

Code: Select all
   union {
      // Internal nodes
      struct { Node *a, *b; };
      
      // Leaves
      struct {
         cpTimestamp stamp;
         Pair *pairs;
      };
   };


First it warns that the struct declarations "Declaration does not declare anything" and then of course below it cannot find stamp, pairs, etc. Sorry if someone has already addressed this.
mobilebros
 
Posts: 90
Joined: Tue Aug 04, 2009 9:53 am

Re: Chipmunk 6.0 Beta

Postby mobilebros » Wed Apr 13, 2011 10:08 am

I figured out the issue, It needed the -fms-extensions flag set on the file's build settings tab (other compiler flags). This issue might have come about because I have -std=c99 set in my project settings build section.... I'm not positive though.
mobilebros
 
Posts: 90
Joined: Tue Aug 04, 2009 9:53 am

Re: Chipmunk 6.0 Beta

Postby slembcke » Wed Apr 13, 2011 10:11 am

Oh, so I am using anonymous structs and anonymous unions there because it made the code waaaay easier to read/write. It's a C++ feature, but is supported in GCC and Clang as extensions. If you are compiling using GCC, you have to set GNU99 as the language dialect. I'm considering rewriting it if it turns into a compiler compatibility problem.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Chipmunk 6.0 Beta

Postby mobilebros » Wed Apr 13, 2011 2:14 pm

ok that's good to know, tried it out and worked perfectly. I'm going to try and compile a list of the evil I'm doing with chipmunk privates along with the reasons for doing it and send it your way at some point... better late than never I guess :?
mobilebros
 
Posts: 90
Joined: Tue Aug 04, 2009 9:53 am

PreviousNext

Return to Chipmunk2D Physics

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 14 guests

cron