Relating to the motion of objects through space (in 2 dimensions (x,y)) and time. Including concepts such as acceleration (thrust and gravity), mass, collision response, friction and more.
2
votes
2answers
362 views
Physics in a 2D oblique perspective game
So, just to clarify, because I'm still fuzzy on the terms for perspectives in older games myself, examples of an oblique perspective can be seen in many older RPGs (Earthbound, Final Fantasy, Secret ...
0
votes
1answer
582 views
Best Android gaming engine for Billiards game?
What is the best engine/way to go with when implementing a 2D billiards game? I am thinking about Emini Physics Engine, which is free for use and stuff, but maybe you can give me some pitfalls about ...
4
votes
1answer
875 views
Creating similar effects of Geometry Wars in 2D only
I want to create a game with similar effects to that of "Geometry Wars"... for those who have never played the game, basically, massive amounts of 'bending' and 'warping' effects are done on the ...
12
votes
3answers
2k views
2D game collision response: SAT & minimum displacement along a given axis?
I'm trying to implement a collision system in a 2D game I'm making. The separating axis theorem (as described by metanet's collision tutorial) seems like an efficient and robust way of handling ...
8
votes
3answers
767 views
Tiling Physics using Farseer
I'm having a problem with the Farseer Physics Engine, where in a tiled environment, my object will at times interact with corners of others objects, even if they align perfectly.
You can try it ...
11
votes
4answers
613 views
How to get object to lose less velocity as its speed increases
I'm developing a game in Flash and I need a little help. It can be considered a math problem.
My object is flying with speed X and my object can collide with stones. When it collides with a stone, I ...
1
vote
1answer
1k views
How can I cancel a contact in a b2ContactListener?
To know when contacts happen we can derive from b2ContactListener and implement our own solution which is great. I'm wondering is there anyway we can cancel a contact, that is to say when we hit begin ...
1
vote
1answer
669 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 ...
4
votes
3answers
499 views
2D physics library that supports curved surfaces and inverse or boolean shapes?
I've been using box2D for a few months, but I now badly need a physics library which can use boolean shapes (ie; cutting a circle out of a square) and/or curved surfaces. Does anyone have any ...
2
votes
1answer
428 views
Need help with collision detection/resolution in a 2D simulation of 'worm-like' creatures
(originally posted this on regular stack overflow, somebody pointed this forum out :-) )
Hi there,
I'm implementing a physics engine for the simulation of worm-like creatures. Problem is, is that ...
1
vote
1answer
2k views
2D Physics Engine for Platform Games - Riding on a Platform
I have a number of questions relating to using a 2D physics engine in a platform game, but one main one that I'm grappling with at the moment. I managed to somewhat integrate the Physics2D.Net engine ...
1
vote
1answer
681 views
Android Fling Gesture, Animation And Collision - Resources?
I'm starting work on a 2D Android game where the player will put their finger on a game piece and do a fling gesture to throw the piece across the gameboard.
I've gone through some Android ...
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 ...
5
votes
3answers
511 views
Physics for Android Game
I'm making a 2D game for the Android phone, one that involves falling balls. I want to use a physics engine to properly simulate the balls falling and hitting other objects. I'm currently using ...
4
votes
2answers
691 views
Collision response for 2D racing game
The title is fairly self-explanatory. I have a 2D racing game that utilizes per-pixel collision detection (the track is essentially two bitmaps, one for the graphics, one for collision data). The ...
2
votes
2answers
449 views
Tracking Object Position - Firing on a Trajectory
How can I calculate the position of an object after "firing" it from a fixed point?
I am to create a small game - most likely with canvas (pure HTML, JS based) or Adobe Flash - in which the player ...
-4
votes
1answer
589 views
Homemaking a 2d soft body physics engine
hey so I've decided to Code my own 2D soft-body physics engine in C++ since apparently none exist and I'm starting only with a general idea/understanding on how physics work and could be simulated:
...
5
votes
2answers
2k views
2D soft-body physics engines?
Hi so i've recently learned the SFML graphics library and would like to use or make a non-rigid body 2D physics system to use with it. I have three questions:
The definition of rigid body in Box2d is
...
5
votes
4answers
494 views
Channelling an explosion along a narrow passage
I am simulating explosions in a 2D maze game.
If an explosion occurs in an open area, it covers a circular region (this is the easy bit.)
However if an explosion occurs in a narrow passage (i.e ...
2
votes
2answers
619 views
Physic of an arrow in flight
What are the formulas which represent the horizontal and vertical displacement of an arrow in flight (as well as it angle)? I would like to make sure that I take into consideration the arrow's fluid ...
7
votes
6answers
360 views
Determining player.isFalling() through change of y?
I'm currently using Box2D and my character is a bunch of fixtures in Box2D. I was wondering if, to determine if a player is falling, detecting a change in Y position would be appropriate?
Are there ...
3
votes
1answer
340 views
Moving object through nodes in Quadtree
I'm working on my own quadtree for use in games for physics (collision detection to be exact) but am unable to move an object from one node to another node.
What I'm doing is if some object is to be ...
0
votes
1answer
571 views
2D game physics, doing it right
I have a ball that you can make jump,
I have a sneaking suspicion I'm doing this wrong. It works now, to the extend that gravity pulls the object down toward the ground, but I'm having trouble ...
1
vote
4answers
1k views
Simple physics for modelling ship/submarine movement
for a first iteration of my sim, I need a very basic physics model for ship/submarine movement. I'd guess it might be a good approach to use vectors here (ship heading but also considering sea states ...
16
votes
1answer
541 views
Recreating retro/NES style physics with intentional imprecision
Background:
I'm having a problem getting the jump curve correct for a retro platformer remake project of mine. The original game is for the NES, and the player's velocity is stored in two separate ...
0
votes
1answer
1k views
2D Gravity and jumping
I have a gravity handler that works pretty well:
//If gravity is active:
//Iterate through all subscribers and have them fall
//by the GRAVITY_VALUE modified by the subscribers gravity modifier.
...
1
vote
1answer
1k views
ways to make a physics engine
Hey so i've been looking into real time physics engines, which led me to the crazyLaggoa multiphysics engine by thiaga costa, and brought up the question of:
What are some possible ways, ideas that ...
8
votes
5answers
3k views
How can I easily implement swinging in a platformer game?
I'm developing a game in which player can use ropes to swing (just like what Spiderman or Bionic Commando did) and I'm having problem implementing this behavior. Can anyone help me how to do this, I ...
2
votes
1answer
659 views
Converting 2D Physics to 3D
I'm new to game physics and I am trying to adapt a simple 2D ball simulation for a 3D simulation with the Java3D library. I have this problem:
Two things:
1) I noted down the values generated by the ...
4
votes
1answer
338 views
How to balance a ball on a rotating plane?
I'm doing some research and I really don't want a physics engine when a simple mechanism will do. I have a ball that will be balanced on a plane. The ball will always be "stuck" to the plane and ...
2
votes
3answers
1k views
2d Collision detecton axis aligned boxes
I have recently run into some trouble with my collision detection. My game is composed of a map made out of axis aligned squares. The player has an x and y velocity, and I want to know how I can find ...
1
vote
1answer
233 views
Mouse joint isn't restricting the ball from going to the other part of the screen
I'm developing a application in cocos2d using the Box2D framework, but unfortunately I am having issues. I'm not able to restrict the orange ball in the half screen area, taking the image below as ...
0
votes
2answers
223 views
How to apply numerical integration on a graph layout
I've done some basic 1 D integration, but i can't wrap my head around things and apply it to my graph layout.
So, consider the picture below:
if i drag the red node to the right, i'm forcing his ...
7
votes
1answer
2k views
Basic Box2D collision detection
I don't understand how to listen for collisions in Cocos2D/Box2D. Say I have two dynamic circle bodies. One is very small and the other is relatively large. When the small circle collides w/ the ...
7
votes
1answer
459 views
Finding the point of collision
I'm writing a 2D rigid body simulator. The objects being simulated are convex polygons. My question involves how to decide on the "point" of collision, so that when I apply a response force, I can ...
3
votes
2answers
967 views
When and how should I apply forces in a Cocos2D + Box2D game?
I have some small circles just rolling across the bottom of the screen in my Cocos2D/Box2D iOS app. The bodies are dynamic... so I make them roll by applying a horizontal force to the center of mass ...
3
votes
2answers
750 views
Why are my objects becoming permanently stuck to walls using Box2D?
I setup a simple simulation environment something like billiards. There are four circle balls (dynamic) and four box walls (static).
Simulation works... except one thing. Sometimes when a ball rest ...
4
votes
1answer
195 views
Box2D stable range and position
Box2D marks stable range of object size is 0.1M ~ 10M. This specifies object size range. How about space size? If I make an 1M object at (1000.0f,1000.0f) position? Is it can be stable? Or should I ...
5
votes
1answer
351 views
Pseudo-magnet implementation with chipmunk
How should I go about implementing "natural" magnet on a certain body in chipmunk space? Context is of simple bodies lying in the space (think chessboard). When one of the figures is activated as a ...
4
votes
1answer
340 views
Good book or tutorial for learning how to apply integration methods
I'm looking to animate a graph layout using edges as springs and nodes as weights (a node with more links will have a bigger weight).
I'm not capable of wrapping my head around the usage of ...
1
vote
0answers
467 views
Cocos2d and Body with few collision shapes using chipmunk
I'm using Cocos2d (0.99.5) with chipmunk physics engine. Currently I'm trying to place a body into space which is combined from few circle shapes.
Let's say I have a corresponding sprite image with ...
2
votes
2answers
841 views
Find meeting point of 2 objects in 2D, knowing (constant) speed and slope
I have a gun which fires a projectile that has to hit an enemy. The problem is that the gun has to be automatic, i.e. - choose the angle in which it has to shoot, so that the projectile hits the enemy ...
3
votes
3answers
291 views
Adding 'swerve' to a direction
I'm not much of a maths expert, so this is probably quite straight forward. I was playing a soccer flash game where you take free kicks. You provide Power, Swerve and Direction. I'm reading up on ...
10
votes
4answers
2k views
How to build a bones animation engine?
I want to develop a flash game. It would draw a stick man, and edit his pose.
I think what I need to learn are bones animation and physics engine.
Can anyone introduce some good resources to learn ...
2
votes
2answers
1k views
Using box2d DrawDebugData with multi layer scene?
In my Game, a Scene is composed by several layers. Each layer has different camera transformations.
This way I can have a layer at z=3 (GUI), z=2 (Monsters), z=1 (scrolling background), and this 3 ...
1
vote
1answer
194 views
2D Game Physics: How to evaluate when an accelerating ray is close to a point?
Given a ray in a 2D world at position p with initial velocity u and acceleration a how can I tell when it's within a certain distance r from a certain point.
1
vote
1answer
546 views
How to use the chipmunk physics-engine?
I am developing a game demo where I want a physics simulation with balls and obstacles.
I know that this is possible with the chipmunk physics-engine but I don't know how to use it. Can anybody give ...
1
vote
2answers
2k views
Voronoi regions of a (convex) polygon
I'm looking to add circle-polygon collisions to my Separating Axis Theorem collision detection.
The metanet software tutorial (http://www.metanetsoftware.com/technique/tutorialA.html#section3) on ...
6
votes
1answer
223 views
How do I change the speed of an object without changing path travelled?
I have a ball which is being thrown from one side of a 2D space to the other. The formula I am using for calculating the ball's position at any one point in time is:
x = x0 + vx0*t
y = y0 + vy0*t - ...
5
votes
1answer
1k views
How does 2D Game Physics work? [duplicate]
Possible Duplicate:
How do I build a 2D physics engine?
If we take the game Angry Birds that had big success lately I were thinking how do they implement the physics in a game like that?
...