Tagged Questions
1
vote
1answer
133 views
Is using Box2D for simulating gravity “in space” a good idea? [duplicate]
I'm attempting to write a simulation of a solar system of planets in 2D space that are attracted to each other through Newton's law of universal gravitation.
I know that it is possible to simulate ...
4
votes
1answer
321 views
Mario like jumping and landing in box2d, help
I've been trying to get Mario type jumping/landing in a Box2d game and it's been giving me some trouble.
Results: Player loses velocity on landing
Desired Results: When player lands it will continue ...
2
votes
1answer
267 views
How do I make a rope from point A to B in Box2D?
I need to make a rope (preferably not elastic) from one point to the next in Box2D. If it helps, I'm trying to develop one of those 2D Spiderman games, like this: ...
4
votes
2answers
206 views
Detecting a ledge in Box2D [duplicate]
Possible Duplicate:
Detect Open Space in Farseer
How do I detect ledges?
I'm making a 2D platformer with Box2D. The player needs to be able to grab onto a ledge and pull him/herself up.
...
0
votes
0answers
2k views
LibGDX Box2D Body and Sprite AND DebugRenderer out of sync
I am having a couple issues with Box2D bodies. I have a GameObject holding a Sprite and Body. I use a ShapeRenderer to draw an outline of the Body's and Sprite's bounding boxes. I also added a ...
3
votes
1answer
1k views
AndEngine Moving a Connected Texture and Physics Body
In AndEngine, many times we create a TextureRegion for our sprite. We can move this region around the scene but when I connect that region to a physics body I end up being able to use either one to ...
0
votes
0answers
830 views
Multiple spawned objects on collision - Corona SDK
Please help! I'm trying to spawn 5 balls one by one from the sky and have them disappear as soon as they hit the ground or when they hit another user-controlled object that's on the ground. The good ...
1
vote
1answer
658 views
Bodies are colliding but refusing to rotate in Box2D
I'm running box2d in C++ and hooking it up to C# via p/invoke. All physics stuff occurs in C++.
My problem is that bodes know when they are colliding and do so with great precision. However if I have ...
1
vote
2answers
1k views
Box2D Platform body not moving player body along with it
I am creating a game using Box2D (Javascript implementation) - and I added the ability to have a static platform, that is moved along an axis as a function of a sine.
My problem is when the player ...
2
votes
2answers
498 views
2D AI Engines/ Resources?
i'm wondering if there's any 2D AI source code or engines out there. I'm inspired by the Euphoria engine, and want to use whatever is already out there to make something like it in 2D, where the ...
5
votes
1answer
427 views
Strangeness when simulating a chain
I'm using box2d and I simply hook up 10 points each with a similar length constraint to the adjacent point.
When I move 1 point, the others follow just like a rope/chain. Just like one would expect.
...
7
votes
2answers
1k views
Box 2D Set Origin
I'm trying to set the origin of a box2d shape. By default, a shape rotates around the center. But I'm trying to get it to rotate around the left of the shape. Like a clock for example.
I've heard of ...
5
votes
2answers
3k views
Using The Box2D Polygon “Set()” function?
I'm using the Box2D physics engine. And there's a type of shape for box2D called b2PolygonShape.
In this class, you can create polygons. There is also a Set() function that takes an array of points ...
5
votes
3answers
3k views
Box2D Check If Point Intersects a Body
Is there a way to check if a point is intersecting a body?
For example, lets say there's a body in the world at a position of (100,100).
Is there a way to check if a point at (100,100) intersects ...