Chipmunk 6.1 Preview

Discuss new features and future development.

Chipmunk 6.1 Preview

Postby slembcke » Sat May 12, 2012 12:29 pm

We posted a preview of some of the new features coming in 6.1. I hope to have it ready to be released ASAP. I think I'm done with code changes, and am working on making sure the documentation is up to date.
http://howlingmoonsoftware.com/wordpress/?p=680

As always, the code is available now (Chipmunk Pro users too!) from Git for the people that are interested. More information on the Downloads page:
http://chipmunk-physics.net/downloads.php

After that is out I want to get back to making more example content. We've had too much contracting work lately, and I'm months behind on that (especially for the autogeometry). :-\
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.1 Preview

Postby aisman » Tue May 15, 2012 5:32 am

Hello slembcke,

I have two questions:
1) Which branch has the C preview of Chipmunk 6.1 on git?
2) Are all public API function stable enough for writting a 6.1 Chipmunk wrapper?

Thanks
aisman
Chipmunk4PB: The fastest way to write games together with PureBasic and the Chipmunk physics engine.
User avatar
aisman
 
Posts: 143
Joined: Tue Mar 04, 2008 2:21 am

Re: Chipmunk 6.1 Preview

Postby slembcke » Tue May 15, 2012 8:58 am

It's the master branch.

There is only one issue that might cause API changes, best shown as a code example:
Code: Select all
// Vertexes passed to cpMomentForPoly() are not passed through cpConvexHull()
cpFloat moment = cpMomentForPoly(mass, numVerts, verts, cpvzero);
cpBody *body = cpBodyNew(mass, moment);

// Vertexes passed to cpPolyShapeNew() are...
cpShape *shape = cpPolyShapeNew(body, numVerts, verts, cpvzero);


So if you had a tight fitting concave shape for something, you probably would want the moment of inertia of the original shape even if it was going to have a convex hull made out of it. BUT! The problem I didn't think of at first was that if you pass completely crap vertexes to cpMomentForPoly(), bad things... It won't play nice if the winding is reversed or has an inconsistent winding so that it's self intersecting. I'm not sure what to do about it yet.
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


Return to Features/Development

Who is online

Users browsing this forum: No registered users and 1 guest