Questions tagged [chipmunk]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

Off center forces on Chipmunk2D body

I am puzzled by the behaviour I am seeing in my game that uses Chipmunk2D for physics. I am not sure what I see is physically correct or not? If I apply two forces as such, the tank turns, as ...
1
vote
0answers
283 views

Correct way to move player in cocos2d-x chipmunk platformer

I'm attempting to make a physics based 2d platformer in cocos2d-x using the built in chipmunk physics engine. I've not used a physics engine before and I'm having some issues setting the correct ...
1
vote
2answers
220 views

Get different result on different devices (same resolution) after setVelocity

I'm dying with physics , i've tried to use setVelocity however i got slightly different value from different devices. I've tested on iPhone 5 (on simulator) and ...
0
votes
0answers
80 views

How velocity impacts on CCSprite in Cocos2d Chipmunk?

I am in need of the basic understanding of how velocity changing works? i.e. how CCSprite is able to jump at particular height when some velocity is set? Let me give you an example on which I am ...
2
votes
0answers
708 views

cocos2dx - Swipe and cut the sprite

I am trying to implement swipe and cut a sprite using cocos2dx and inbuilt chipmunk. For the solution I have done following things Enabled physics in the scene, so that the body falls on cut. Used ...
1
vote
1answer
658 views

Cocos2d - Physics bodies randomly loosing Velocity along an axis after impact

This just started occurring and seems to randomly happen during, and between, game sessions. A dynamic moving body collides with a static body and instead of bouncing off looses (almost completely) it'...
1
vote
1answer
1k views

Cocos2dx+Chipmunk: Fully elastic collision between moving bodies

I'm using Cocos2dx and the built in Chipmunk physics engine, and currently I've got my PhysicsBodys' materials set up with: Density=0 Restitution=1 Friction=0 in ...
0
votes
2answers
971 views

Cocos2dx - Physics - Abort() When Changing Dynamic PhysicBody to Static?

I just learned cocos2dx v3.3 integrated chipmunk physics engine. Here ,as you see, I create a simple circle with physic as: ...
5
votes
2answers
2k views

Implementing one-way platforms in Chipmunk

I am making game in cocos2d-x, but it's the first time I am using a physics engine i.e. Chipmunk. (It's built-in to cocos2d-x.) I want to make a one-way platform: When my character jumps into a ...
1
vote
1answer
432 views

applyAngularVelocity causes error when called right after object instantiation

I'm trying to make a physicsBody rotate as soon as it is instantiated. ...
0
votes
0answers
276 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 ...
4
votes
2answers
536 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
295 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 want to ...
0
votes
1answer
303 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
1k 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 ...