box2d-iphone
Reducing the angle of reflection using Box2D
Folks, I\'m trying to implement a certain behavior to a collision where a ball hits a wall at an angle. I want the ball to maintain full velocity, but I would like for the angle of reflection to be s[详细]
2023-03-24 14:18 分类:问答Saving a subclass of NSObject in Box2d UserData and retrieve it back?
I have a game entity class as follows : @interface CPlanet : NSObject { b2Body *planetBody; } -(void)init;[详细]
2023-03-22 18:53 分类:问答Moving b2Body in given angle
I have b2Body of which i set angle using setTransform. But I want b2Body to move in particular angle. My CC开发者_如何学JAVASprite is moving in that angle using ccMoveBy. But my b2Body is not moving w[详细]
2023-03-18 21:04 分类:问答How to destroy a b2Body in Box2D (cocos2d)? After checking the traveld distance
I have bullets in box2d/cocos2d-for-iphone. They are flying fine...but I want to destroy these bullets after they traveld a certain distance. for example after a bullet \"flew\" 480px it should be rem[详细]
2023-03-18 04:04 分类:问答box2D: move body to the point(touchesEnded)
I\'m new to BOX2d and I need to move the body and the sp开发者_如何学JAVArite from the center to the point where there was contact with a low rate, I tried to use a projectile-> SetTransform (b2Vec[详细]
2023-03-17 03:58 分类:问答Animation and Collision detection using Cocos2D/Box2d - iPhone
I am developing an iphone game using cocos2d and box2d. I use cococ2d to animate a sprite (using series of png).[详细]
2023-03-15 06:00 分类:问答Iphone game cocos2d and box2d
I have image named \"platf开发者_C百科orm.png\" that represents one brick for platform of a IPhone game. I have a cartoon character that will jump on this platform.[详细]
2023-03-14 11:33 分类:问答implementing Static object on a moving scene
How to implement an \'menu\' that seems like stuck to it\'s position? Here with stuck I meant to say either scene is moving or still it remain on it\'s on position. Which gives feel like it\'s on it\'[详细]
2023-03-13 06:38 分类:问答Object's too slow motion
In cocos2d environment and box2D when an spherical object falls 开发者_如何学编程on a blunt slant obstacle, it moves really slowly, that\'s nauseating, if you have coded to not to have any interaction[详细]
2023-03-12 18:16 分类:问答How to Implement waving(Like pendulam) ropes effect in COCOS2D?
I am tryin开发者_如何学运维g to implement wave effect when any thing hits the hanging object, how can I achieve the both,:[详细]
2023-03-06 07:57 分类:问答