Relating to the motion of objects through space and time. Including concepts such as acceleration (thrust and gravity), mass, collision response, friction and more.
9
votes
1answer
947 views
Adding air drag to a golf ball trajectory equation
I'm developing a 2D golf game in VB.NET 2005, but I am stuck on how to implement air or wind drag that should affect the ball.
Already I have these equations for projectile:
Vo ...
4
votes
3answers
561 views
Kepler orbit : get position on the orbit over time
I'm developing a space-simulation related game, and I am having some trouble implementing the movement of binary stars, like this:
The two stars orbit their centroid, and their trajectories are ...
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 ...
0
votes
1answer
2k views
Best 3D Physics Engine to use with Ogre [closed]
I am looking for a good physics engine to use with an Ogre game I'm writing.
I would prefer for it to be free, open source, mature, simple to use, easy to learn, and flexible.
I'm currently thinking ...
3
votes
2answers
382 views
Silverlight scrolling with camera
I'm trying to get my head around scrolling a 2D map that uses a physics engine. If I was to launch a projectile, would I actually be applying the physics to the background images rather than the ...
3
votes
1answer
470 views
Maximum range of projectile fired at given force and elevation
I've gone over this again and again, and my result is obviously wrong when viewed in-action. Here's the initial formula I converted (first one):
http://en.wikipedia.org/wiki/Range_of_a_projectile
...
5
votes
2answers
2k views
How to make bird to fly using box2d
I am new to Box2D, I have set gravity to 10. How to make an object fly in space even though the gravity is 10. What are the properties I need to set to make object fly? Is there any different ...
2
votes
2answers
249 views
I'm looking for a paper from Teknikus.dk
I'm looking for this great paper about Verlet integration: http://www.teknikus.dk/tj/gdc2001.htm
I've found this link on many websites, forums, blogs, everyone is recommending it !
The website is ...
4
votes
2answers
463 views
Particle and Physics problem
This was originally a forum post so I hope you guys don't mind it being 2 questions in one.
I am making a game and I got some basic physics implemented. I have 2 problems, 1 with particles being ...
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 ...
3
votes
1answer
613 views
Angular Velocity
Hey,
I have a particle that is hit with a force F at a particular position on the ball P. How can I calculate the angular velocity of the X,Y and Z axis? The actual rotating of the object should be ...
4
votes
4answers
846 views
Physics timestep questions
I've got a projectile working perfectly using the code below:
//initialised in loading screen
60 is the FPS - projectilEposition and velocity are Vector3 types
gravity = new Vector3(0, ...
2
votes
1answer
427 views
Calculate the initial velocity of a 3D trajectory
I've got a 2D projectile code sample working, but would like to extend it to 3D. How would I calculate the initial velocity of the Z-axis? At the moment, I've got:
initVel.X = (float)Math.Cos(45.0);
...
9
votes
2answers
757 views
Simulating an object floating on water
I'm working on a top down fishing game. I want to implement some physics and collision detection regarding the boat moving around the lake. I would like for be able to implement thrust from either the ...
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 ...
6
votes
5answers
616 views
Is it possible to have vehicles with physics like GTA in an MMO game?
I haven't seen any MMO games with vehicles with realistic physics and that could achieve high speed, why? Is it because of network bandwidth limitations?
Second Life has vehicles, but physics are ...
3
votes
1answer
247 views
Approximating walking physics via simpler sliding physics
I am modeling walking insects. I implement them as cuboids and use forces (including friction and drag), to control motion. However, the movement characteristics of this 'sliding box' physics don't ...
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.
13
votes
1answer
1k views
Any fixed-point portable open-source 3D physics engines?
I'm looking for a fixed-point 3D physics engine (basic kynematics and collision detection-resolution... nothing too fancy.)
I need fixed-point math because I'd like to have deterministic results, for ...
9
votes
1answer
1k views
Separating physics and game logic from UI code
I'm working on a simple block-based puzzle game.
The game play consists pretty much of moving blocks around in the game area, so it's a trivial physics simulation. My implementation, however, is in ...
15
votes
6answers
1k views
AI control for a ship with physics model
I am looking for ideas how to implement following in 2D space. Unfortunately I don't know much about AI/path finding/autonomous control yet.
Let's say this ship can move freely but it has mass and ...
0
votes
0answers
223 views
Simple project - make a 3D box tumble and fall to the ground [duplicate]
Possible Duplicate:
Resources to learn programming rigid body simulation
Hi guys,
I want to try learning rigid-body dynamic simulation. I have done a fluid and cloth simulation before, but ...
3
votes
1answer
529 views
Breakout clone, how to handle/design for collision detection/physics between objects?
I'm working on a breakout clone, and I wish to create some realistic physics effects for collision - angles on the paddle should allow the ball to bounce, as well as doing curve balls etc. I could use ...
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 - ...
10
votes
3answers
4k views
Is there an algorithm for a pool game?
I am looking for algorithm to calculate direction and speed of balls in a pool game. I am sure there has to be some type of open source code for this since pool games are some of the oldest computer ...
3
votes
1answer
492 views
How to restrict paddle movement using Farseer Physics engine 3.2
I am new to using Farseer Physics Engine 3.2(FPE), so please bear with my questions. Also, since FPE 3.2 is based on Box2D, I have been reading Box2D manual and pieces of code scattered in samples to ...
4
votes
2answers
389 views
How to detect and collide two elastic line segments?
There are 4 moving physical nodes in 3D space. They are paired with two elastic line segments / strings (1 <-> 2; 3 <-> 4).
Part I: How to detect the collision of two segments?
Part II: On the ...
3
votes
2answers
1k views
2D game - Missile shooting problem on Android
I have to make a tank that sits still but moves his turret and shoots missiles.
As this is my first Android application ever and I haven't done any game development either, I've come across a few ...
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?
...
1
vote
1answer
260 views
Determining relative velocities on impact?
I'm trying to figure out a way to determine the relative velocity of a body colliding with another in a 2D environment.
For example if one body is moving at (1,0) and another traveling behind it ...
1
vote
1answer
654 views
gpgpu vs. physX for physics simulation
First theoretical question. What is better (faster)? Develop your own gpgpu techniques for physics simulation (cloth, fluids, colisions...) or to use PhysX?
(If i say develop i mean implement existing ...
5
votes
2answers
401 views
Physics in my game confused after restructuring the Game loop
I'm on my way with making a game in Java. Now I have some trouble with an interpolation based game loop in my calculations.
Before I used that system the calculation of a falling object was like ...
1
vote
3answers
1k views
Collision Detection for 2D
I am working on a simple game, where I need to do a collision detection of two Texture2D. The code I have written is:
bool perPixelCollission = false;
Texture2D texture1 = ...
3
votes
1answer
188 views
Follow point of interest by applying torque
Given a body with an orientation angle and a point of interest or targetAngle, is there an elegant solution for keeping the body oriented towards the point of interest by applying torque or impulses?
...
3
votes
2answers
694 views
Development platform for 2D web and mobile games
Is there a game development platform -- similar to Torque, or Unity -- which can be used to deploy 2D games on the following platforms:
Web
iOs
Android
Xbox Live Arcade (Preferred but not required)
...
5
votes
1answer
545 views
Soft body, where to start learning?
I want to ask you about some resources to learn simulating soft bodies, do you know some good knowledge sources?
I asking because I want to make car crash simulator, I've made something but it didn't ...
1
vote
1answer
811 views
car crash android game
I'd like to make a simple 2d car crashing game, where the player would drive his car into moving traffic and try to cause as much damage as possible in each level (some Burnout games had a mode like ...
1
vote
1answer
263 views
Calculating the force of an impact?
I'm trying to figure out a way to determine the force two objects collide in.
I have two vectors defining their linear velocity at the time of impact, their mass and their angular velocity. Keep in ...
2
votes
2answers
891 views
Farseer - Apply Impulse
I'm new to Farseer and have a simple question. The demos I went through didn't seem to demonstrate what I want. I would like to apply an impulse (not force) to an object at a specific position on that ...
13
votes
5answers
4k views
Lag compensation with networked 2D games
I want to make a 2D game that is basically a physics driven sandbox / activity game. There is something I really do not understand though. From research, it seems like updates from the server should ...
29
votes
6answers
2k views
Analysis of Mario game Physics [closed]
I know there's a breakdown of Sonic the Hedgehog physics found here, and I was wondering, does there exist a breakdown of any of the Mario games? Something similar to this but for Mario is what I'm ...
8
votes
6answers
570 views
Ragdoll on alive creatures: has somebody already implemented it?
I find that a dead creature falling realistically is boring.
I wonder, has any game implemented an animation system where the model moves depending of the muscle forces and the velocity of the limbs, ...
3
votes
4answers
315 views
Forcing one projectile to follow close behind an initial projectile
I'm shooting out a projectile and I want another projectile to closely follow it. I can't simply shoot out the second projectile at a slightly lesser time because the first projectile may change ...
27
votes
2answers
2k views
Water/Ocean simulation and physics
I'm looking for some references about water simulation, and how to model it's interaction with bodies (like boats, ships, submarines).
I've found a lot of references on the visual aspects of water ...
5
votes
3answers
1k views
Resources to learn programming rigid body simulation
Where I can start learning about simulating rigid bodys 2d and 3d ?
4
votes
1answer
2k views
Farseer and 2D Action sidescroller game
I'm thinking about using Farseer inside my game (I'm not good in physics), which isn't a bad idea. However something happened while I was thinking about that, I found this tutorial:
...
6
votes
2answers
250 views
Self-righting agents that have fallen over
I need insect-like agents that have fallen/rolled on their back/side to naturally re-orient themselves. The agents are modeled as simple cuboids in the physics engine (Bullet) to approximate an ...
5
votes
2answers
2k views
Is it worth it to use Bullet for 2D physics instead of Box2D for the sake of learning Bullet?
There isn't much more to the question. I'm not concerned about overhead, as I'm sure they are both fine for my purposes. Basically, I am familiar with Box2D concepts because of the Farseer Physics ...
9
votes
4answers
1k views
When should I use a physics engine?
Since I found out Box2D, I'm using it for kind of any game-like application I try to write, from very small prototypes or small programs to test something, to actual projects.
Thanks to it it's so ...
4
votes
2answers
480 views
How are physical model programmed in simulation games?
Being a Gran Turismo fan, I'm wondering what are the algorithms used to compute realistic behavior for friction, aerodynamism, velocity, curves etc.
Also, are there sophisticated ways to simulate ...