0
votes
1answer
62 views

How can I get a function of time for coordinates of a 2D-moving body in a gravitational field from equations of forces?

I am having a hard time with writing code for simulation of 2D motion of a body with mass in a gravitational field of another body. I have 2 masses and a gravitational force equation. I know that ...
2
votes
1answer
296 views

Realistic 2D Planetary Physics Engine?

I'm doing a spaceflight simulator in C++ (using Allegro 5), and I realised that I could just use a physics engine instead of writing my own physics. So that's what I'm doing. Since this is going to ...
2
votes
1answer
379 views

Simple 2D hair simulation/manipulation

I would like to simulate very simple hair in a 2D environment, and will need to be able to "brush" the hair. What I want to do: A 2D character is facing squarely towards the player. The player can ...
16
votes
1answer
2k views

Ideas for 2D Water Simulation

I am looking for any input on simulating water in 2D, against a rather large (call it) blocked/not blocked array (viewed from the side). I have come up with the following ideas: Cell Automata Do a ...
7
votes
1answer
530 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 ...