Page 1 of 6
Games using the Chipmunk4PB wrapper (2D physic engine)
Posted: Tue Aug 02, 2011 8:37 am
by IceSoft
Maybe you know: I have created a wrapper for the sweet 2D physic engine: Chipmunk (5.4.3).
Some days ago: Chipmunk 6.0.1 is released and I want to update my wrapper to this improved version of course.
So my question is now: Who is also working on a chipmunk wrapper?
Last but not least: here a nice demo of the 6.0.1 version too
http://www.morty-productions.de/icesoft ... 1_demo.zip (= Windows Executable)
And here some new demo movies
Jelly physics example:
http://www.youtube.com/watch?v=McvG32qEoSo
Multi-touch physics example:
http://www.youtube.com/watch?v=m5nO1bcvyTY
Deformable Terrain
http://www.youtube.com/watch?v=oacZwUGP11c&NR=1
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Tue Aug 02, 2011 9:05 am
by marc_256
Hi IceSoft,
I love your work,
and I like to use some 2D engines, but I do not have the time now.
Yes Chipmunk is a good choose.
Maybe in the near future...
Marc,
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Tue Aug 02, 2011 3:58 pm
by DoubleDutch
I have seen the v0.4 of your wrapper - has it been updated since?
Also have you got v6.0.1 as a .lib ?
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Tue Aug 02, 2011 7:30 pm
by IceSoft
DoubleDutch wrote:I have seen the v0.4 of your wrapper -
1) has it been updated since?
2)Also have you got v6.0.1 as a .lib ?
1) Yes, but only for internal tests.
2) I'm work on it. Next wrapper version will use the 6.0.1 lib.
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Tue Aug 02, 2011 9:04 pm
by DoubleDutch
Will you be releasing it as an include file with lib like before?
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Tue Aug 02, 2011 10:13 pm
by IceSoft
DoubleDutch wrote:Will you be releasing it as an include file with lib like before?
I plan to make two different versions:
A pro and a normal version.
The normal version is free and will only have a small info on each first start of the lib.
The pro version is not free and will have some improvements e.g. mouse tracking with objects, easier handling for creating new objects and much more.
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Wed Aug 17, 2011 5:05 pm
by AndyLy
I want to use in my new game physics engine, and found yours. Now try to understand wrapper for him.
Unfortunately, this is a closed and secret project (no help, no examples), so I have to learn by the example laid out in Chipmunk4PB_v0.4. If I can understand, will do something nice.
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Wed Aug 17, 2011 5:46 pm
by gnasen
here is a good manual including some demos:
http://chipmunk-physics.net/release/Chi ... test-Docs/
The differences between the original C-code and PB are very little. If you have questions, just ask

Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Wed Aug 17, 2011 7:05 pm
by AndyLy
here is a good manual including some demos
Yes, I already found it. Thanks anyway.
I was able to make a ball.
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Wed Aug 17, 2011 7:14 pm
by IceSoft
AndyLy wrote:here is a good manual including some demos
Yes, I already found it. Thanks anyway.
I was able to make a ball.
Tell me what you want and I can help.
As gnasen says: The different between the wrapper and the orginal demos are very small.
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Wed Aug 17, 2011 7:54 pm
by AndyLy
First question: how to make a static body?
Code: Select all
Bwidth = 150: Bheight=20: mass = 1
moment = cpMomentForBox(mass, Bwidth,BHeight)
*body = cpBodyNew(mass, moment )
cpv(*body\p,100,200)
cpSpaceAddBody(*space, *body)
*shape=cpBoxShapeNew(*body, Bwidth,BHeight)
cpSpaceAddShape(*space, *shape)
; by the way cpShapeSetFriction() - missing
And how to determine size (border) of the world?
P.s. It seems to have understood how to add a Constraint.
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Wed Aug 17, 2011 9:37 pm
by IceSoft
AndyLy wrote:First question: how to make a static body?
And how to determine size (border) of the world?
P.s. It seems to have understood how to add a Constraint.
1) static body:
Code: Select all
; declare the static body typ.
*staticBody=cpBodyNew(#INFINITY, #INFINITY)
...
*shape=cpPolyShapeNew(*staticBody, ArraySize(vecBox()), @vecBox(), offset)
2) Size of the world:
The world is definitivly endless. You have to set your border with segments like this one:
Code: Select all
*shape=cpSegmentShapeNew(*staticBody, vecA, vecB, 0.0);
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Wed Aug 17, 2011 10:25 pm
by AndyLy
*shape=cpSegmentShapeNew(*staticBody, vecA, vecB, 0.0);
Well, I understand. I confused this record :
cpSegmentShapeNew(space->staticBody, cpv(-20, 5), cpv(20, -5), 0);
cpShapeSetFriction(ground, 1);
I'll try to be smarter.
About this :
*staticBody=cpBodyNew(#INFINITY, #INFINITY) ...
*shape=cpPolyShapeNew(*staticBody, ArraySize(vecBox()), @vecBox(), offset)
If I just want to make a couple of boulders on the ground (which will never move), I have to create it that way? I can not just make the box and set the property as a static object?
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Wed Aug 17, 2011 10:50 pm
by IceSoft
AndyLy wrote:
About this :
*staticBody=cpBodyNew(#INFINITY, #INFINITY) ...
*shape=cpPolyShapeNew(*staticBody, ArraySize(vecBox()), @vecBox(), offset)
If I just want to make a couple of boulders on the ground (which will never move), I have to create it that way? I can not just make the box and set the property as a static object?
You can make it like you want too but I use it on this way.
I will make a small example for you too.
You are the first person who ask me about the Chipmunk4PB wrapper.
So be patient with me and my answers (I am not a native english writer)
Re: Who is also working on a Chipmunk wrapper (2D physic eng
Posted: Thu Aug 18, 2011 12:00 am
by AndyLy
I am not a native english writer
English for me, is not native, too.
You are the first person who ask me about the Chipmunk4PB wrapper.
Others simply lazy and do not want to do anything.
Perhaps I was a little rush of questions. At first, I need a closer look at the documentation. Some things that I wanted to ask, I realized after reading manual. So you will have a break.
A little later I will ask those things which are not understood.
P.s. I quite forgot to say while what I see, I like it. It seems super engine! (but Drawing... only Sprites!)