I'm using pymunk to apply forces to a circular body at the ends of its diameter. The forces are of different magnitudes, and neither has an x-component (relative to the body, that is, so they are perpendicular to the diameter). I would expect these…
I'm trying to rotate a body around its own center by applying an orthogonal (to the body direction) force and generating the torque needed. However, this also moves the body (naturally) and I need it only to rotate. Here is my code. Please note that…
So I am working on a game, essentially, its a top down view of a ball. When I click the ball, I basically want to launch it in a given direction. It would be instantaneous force (think hitting a pool ball with the cue). I am trying to use…
so I am having some problems with chipmunk,
please realize that I am new and am just learning many of the ideas around chipmunk and if you have any good books, sources, or websites that I could use to learn chipmunk that would be great (please only…
I'm trying to grasp basics of Chipmunk. In some tutorial I found a line:
cpSpaceHashEach(space->activeShapes, &updateShape, nil);
But I get 2 mistakes here:
1) Implicit declaration of function is invalid in C99
2) No member named 'activeShapes' in…
In my app, I have a bunch of CCSprites and I want to have a collision detection feature that will work only when the non-transparent pixels in the CCSprites collide. I don't want to be restricted to color between the colliding sprites. I think thats…
I downloaded cocos2d, the latest version. I added the folders 'cocos2d' 'cocosdenshion' 'external' 'cocoslive' and 'experimental' to my project folder, then I dragged them to my project without clicking add to destination group project button.
But…
I think the title is pretty clear.
The way I see it is there are two things :
the sprites for display
the bodies for physics
Sprites can be moved in the screen when the level to display is to wide for the screen. But static bodies ? Can they be…
I'm new to Android coding and I'm taking an online tutorial from Udemy.com, and so far I'm really pleased with the quality. In one section the instructor is wanting us to install Android Drawable Import and like many it is failing on Android Studio…
I'm trying to learn Objective C & Cocoa, but I just can't manage to access a property inside an Object. Specifically an object from a C method. I'm working with the chipmunk dynamics library.
Chipmunk has something similar to NSPoint called cpVect.…
In chipmunk/cocos2d, I have the classic bouncing ball demo happily running with an arbitrary number of balls.
How can I tell when a sprite has stopped moving (i.e. the ball has settled to the bottom and is "done")?
I tried declaring float prevX,…
I am trying to create an evolution simulator, something very similar to this. As for tools I am using pymunk physics simulator with pygame.
My creatures consist of few circles with their respective bodies fixed together with DampedSprings as…
I'm trying to make a game where the player shoots at objects, and when the 'bullet' hits the objects should disappear. Right this works fine, but now I'm trying to make it so the objects only disappear if the bullet gives a certain amount of force…