box2d
Box2D Flash engine problems with collision detection
I\'ve seen this type of problem before, but didn\'t knew what is the solution. I\'ve added this triangle to a b2Body Object(the body variable below) and the collision detection isn\'t working for it.[详细]
2023-04-01 12:17 分类:问答Delay in destruction of box2d body.(cocos2d-iphone)
I just encountered this problem where I have a box2d body collide with another box2d body and one of the bodies on collision is supposed to be destroyed. The sprite gets removed all right and the body[详细]
2023-04-01 01:29 分类:问答Cocos2d game termination problem when a moving sprite goes inside the bounding box of a animating still sprite(a ball get into a hole)
Let me explain it indepth, when ever if(CGRectContainsPoint([hole1 boundingBox], ball1.position)) condition goes true, i do lots of stuffs, like unscheduled, a selector, destroying a ball body calling[详细]
2023-03-31 17:12 分类:问答MouseJoint not properly working
I have been trying to use a MouseJoint to move a piece wherever the user touches. But the piece, being affected by the joint, behaves strangely, never reaching the point. This is the code (x and y are[详细]
2023-03-30 14:30 分类:问答How to detecting overlap in Box2d objects
I\'m trying to figure out how to detect if one box2d shape is overlapping another.I can\'t use the normal collision detection because one of the objects is not active and not part of the physics sim y[详细]
2023-03-30 05:44 分类:问答How do I get my app to work with AndEngine Phyiscs Box2D Extension?
I\'m starting out with an AndEngine app, and I want to use the Physics Box2D extension. I\'ve put andenginephysicsbox2dextension.jar in /lib and added it to the Build Path in Eclipse. I\'ve also put a[详细]
2023-03-29 10:46 分类:问答Can't seem to get ApplyForce() to work in a way that makes sense
I’m having a problem utilizing b2Body->ApplyForce() in an IOS/cocos2D/Box2D game. I have a ball object, and I’mapplying force to simulate a golf club strike on it. The user sets the angle and power[详细]
2023-03-29 08:00 分类:问答Box2d Contact Filtering
im using box2d in iOS and the cocos2d-library. I\'m currently attempting to use contact filtering, but found that the category bit masking method simply isnt working for me. I\'ve understood the metho[详细]
2023-03-28 20:19 分类:问答Farseer physics: Collision detection issues
I have three rectangular blocks: ground block, blue block, hero block. Ground is placed at the bottom of screen, blue block lay on ground block and hero block is falling down to blue block. I have lis[详细]
2023-03-28 15:06 分类:问答Best method for changing collision polygons in Box2d?
I\'m wondering what I should do for my player character. Currently he has the idle stance, with all the collision polygons created etc. But I want him to move his arm polygon when he is punching. How[详细]
2023-03-28 13:45 分类:问答
加载中,请稍侯......