Is it possible to add a Chipmunk body to a Cocos2D Parallax node/layer? I have looked at everything I can find, and tried everything that makes any sense (or not). I simply cannot do it, the standard syntax throws errors and I'm not aware of another way to add objects to a parallax node other than [myNode addChild:myBody etc];
Any ide...
I am working on a Labyrinth style app for iPhone using Chipmunk and openAL. I got everything working except the ball rolling sound. What I have tried is playing a small sound for each update in the ball's position so that the overall effect sounds like the ball is rolling. Based on advice on this forum I tired using velocity of the ball ...
Hello.
I have a Chipmunk shape, with a body, in a space. I am removing the body from the space so that I can position it and not have it fall due to gravity etc. I need to be able to make this body move, so I am not making it static.
I need the body to update it's position according to the position of a Cocos2D sprite in the scene + ...
[SOLVED]
I copy the chipmunk folder structure from cocos2d+chipmunk template and build OK.
Classes/Chipmunk/include/src for 'src' folder
Classes/Chipmunk/chipmunk for 'include' folder
Thanks to Beta for trying to help.
:::::
I download chipmunk 5.3.1 and try with a simple example but I receive this compiled errors:
Undefined symb...
hi,
I'm trying to create a chipmunk space with a bouncing ball.(Example seen here)
Currently my device is running in Landscape mode. So according to cocos2D everything is all right. When adding Sprites they orient to landscape mode.
[director setDeviceOrientation:kCCDeviceOrientationLandscapeLeft];
The only problem is that the ...
I am trying to develop a simple soccer game including penalty kicks in which i have to animate a ball from player to the goal post...earlier i have been using simple animations using a timer to add to the axis of ball image so that it moves from 1 point to another..but i did not have the desired result as animations were not that smooth....
Hi all...
Im using Chipmunk with Cocos2d to make a gravity based puzzle game, however I have reached a part of my project whereby I need a sprite that once drawn does not move and cannot be moved by the other sprites within the environment.
In essence...
Can I create a static (non moving) sprite that is not affected by in game gravity...
In Objective-C, is it possible to access instance variables and methods from within the scope of a static c function? I feel like there is probably a simple answer to this that I'm overlooking, but I'm still fairly new to this language.
Consider the following stripped down code:
@implementation MyObject
static int ammoHitSensor(cpArb...
In Box2D, when a body that is connected to a joint is removed from the space, the joint is automatically deleted and you can do stuff in callbacks and so on.
Does Chipmunk do this? If so, how can I detect when a joint connection is 'broken'? Do I have to keep track of this stuff manually?
...