Chipmunk 6.0 Beta

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

Re: Chipmunk 6.0 Beta

Post by slembcke »

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/
mobilebros
Posts: 90
Joined: Tue Aug 04, 2009 9:53 am
Contact:

Re: Chipmunk 6.0 Beta

Post by mobilebros »

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. ;)
viblo
Posts: 206
Joined: Tue Aug 21, 2007 3:12 pm
Contact:

Re: Chipmunk 6.0 Beta

Post by viblo »

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
User avatar
slembcke
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Chipmunk 6.0 Beta

Post by slembcke »

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/
akamal
Posts: 15
Joined: Fri Mar 11, 2011 3:32 pm
Contact:

Re: Chipmunk 6.0 Beta

Post by akamal »

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%
User avatar
slembcke
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Chipmunk 6.0 Beta

Post by slembcke »

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/
mobilebros
Posts: 90
Joined: Tue Aug 04, 2009 9:53 am
Contact:

Re: Chipmunk 6.0 Beta

Post by mobilebros »

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
Contact:

Re: Chipmunk 6.0 Beta

Post by mobilebros »

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.
User avatar
slembcke
Site Admin
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Chipmunk 6.0 Beta

Post by slembcke »

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/
mobilebros
Posts: 90
Joined: Tue Aug 04, 2009 9:53 am
Contact:

Re: Chipmunk 6.0 Beta

Post by mobilebros »

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 :?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests