OK, im trying to make an iphone version of a game i made here http://scratch.mit.edu/projects/techy/781198 is box2d or chipmunk better and where are some tutorials for each one
I'm trying to do a Tiny Wings like in javascript.
I first saw a technique using Box2D, I'm using the closure-web version (because of the memory leaks fix).
In short, I explode the curve into polygons so it looks like that:
I also tried with…
I'm storing Chipmunk Physics' cpShape objects in an NSMutableDictionary by way of NSValue objects and the following lines of code:
NSValue *shapeValue = [[NSValue alloc] initWithBytes: shape objCType: @encode(cpShape)];
[staticBodiesInUse setObject:…
I'm writing a FFI on Common Lisp for Chipmunk2d (a 2D physics simulation library) using CFFI.
When I evaluate on the REPL:
> (cp:moment-for-circle 100 0 1 #(0 0))
(translate-into-foreign-memory 100 #…
There is a nice Sea Stars iOS application out there, with a good looking water effect can be seen on video.
I have found Tiny Wings "waves" tutorial on here, so I guess I can figure out how to make waves.
I wonder how do I make effect when hero pops…
I am brand new to game development and I thought it would be fun to try out Gosu, Ruby and Chipmunk together.
So far I have a player and a ball on a 2d Top-Down field and they collide.
My problem right now is that I want my player to be a square.
I…
My first post on Stack Overflow, so bear with me.
I have built a model of a chaotic double pendulum in python using the pymunk physics library, which in turn uses the chipmunk C library. The pendulum, being chaotic, displays extreme sensitivity to…
I try to convert a game which I started with SpriteKit to Cocos2d V3. I have some problems with the physics though. I create a human like playing figure. The limbs are connected via PinJoints in SpriteKit. I recreated that basic functionality via…
I am completely new to chipmunk and I have just been using it for a few days, so I'm guessing this is something pretty obvious, however I cannot find any documentation for this. Is there any callback or method in chipmunk that tells you that 2 given…
I am trying to use the Chipmunk physics library in Racket using the FFI that it provides. However, I am currently having issues with actually getting the FFI to find the functions in the Chipmunk library, even though it seems to load the library…
I'm trying to port this C# code:
public static ulong WILDCARD_COLLISION_TYPE
{
get
{
int parse = ~0;
return (ulong)parse;
}
}
If I understand correctly, doesn't the ~ symbol perform a bitwise complement so what is the…
http://videobin.org/+70a/8wi.html
You can see what's happening there, and a demo to try it here: http://student.dei.uc.pt/~drgomes/carry/index.html.
So, I'm using Chipmunk JS demos to get an idea of how it works (see…
I'm newbie with Chipmunk physics and want to make an easy example of polygon explosion.
I started with the SmashLogo demo but in this example the are no explosions, only so much ball movements.
I know how to do polygon collision but my dude is for…
Where can I find fixture presets, that can be used in rigid body physics engines, like Box2D to simulate the behaviour of different materials?
I'm looking for values of density, friction and restitution for common materials like:
Smooth/rough…