Chipmunk is a 2D rigid body physics library written in C. Intended to be blazingly fast, portable, numerically stable, and easy to use.

learn more… | top users | synonyms

1
vote
1answer
93 views

applyAngularVelocity causes error when called right after object instantiation

I'm trying to make a physicsBody rotate as soon as it is instantiated. CCNode* ball = [CCBReader load:@"Ball"]; [ball.physicsBody applyForce:force]; [ball.physicsBody ...
0
votes
0answers
69 views

How do I get a sprite's angle after collision?

I'm using Cocos2d (version 3) and I want my hero sprite to be jostled around by incoming enemy sprites. The Chipmunk-based physics work, but I need some way to track the rotation of the sprite after a ...
3
votes
2answers
353 views

How to move the object(tanker ) on slope image in chipmunk Spacemanager

I have used one polygon shape image (terrain)in my game its just like mountain and now i want to move the tanker on mountain path from one direction to other and then its turn on touching of the ...
0
votes
0answers
292 views

How to move a sprite on a slope in chipmunk Spacemanager [duplicate]

Possible Duplicate: How to move the object(tanker ) on slope image in chipmunk Spacemanager I have used one polygon shape image (terrain) in my game. It's just like a mountain, and now I ...
0
votes
1answer
218 views

Is it easy to switch from Chipmunk to Box2D?

Currently I'm doing some prototyping with physics in Python and I later plan to port the code over to C++. Box2D has some features that I really like so I'd rather use that library instead. The ...
6
votes
1answer
561 views

Pseudo-magnet implementation with chipmunk

How should I go about implementing "natural" magnet on a certain body in chipmunk space? Context is of simple bodies lying in the space (think chessboard). When one of the figures is activated as a ...
1
vote
0answers
522 views

Cocos2d and Body with few collision shapes using chipmunk

I'm using Cocos2d (0.99.5) with chipmunk physics engine. Currently I'm trying to place a body into space which is combined from few circle shapes. Let's say I have a corresponding sprite image with ...