The imitation of a real-world process or system.

learn more… | top users | synonyms

1
vote
1answer
64 views

2d block based game storing water simulation

I am making a 2d block based sandbox game like terraria. I'm trying to think where is the better place to store water in, data structure wise. That is, to store it in the block world array, or to ...
0
votes
1answer
31 views

Simulation of a two-masses connected by a rod 2D system

I'm working on a multitouch-based interface and I want to add some physical behavior to gestures (pan, zoom and rotation). I thought model the system like that: When a touch starts, a point mass is ...
1
vote
0answers
12 views

Serious issues with grid of connected springs

So i have a simulation I am trying to make where there is a grid. Each dot will be connected to the dot Above, below, left, or right (If such dot exists) via a logical grid. Theoretically when I ...
1
vote
0answers
73 views

Cell Based Simulation

I'm working on a cell based simulation in a pixel shader (webgl, shadertoy.com specifically), but am having some challenges trying to make the simulation consistent. Each cell (pixel) has the ...
1
vote
0answers
66 views

Open Borders in Fluid / Smoke Simulation

I am trying to adopt a fluid / smoke simulation based of the source files of this video to my needs but came across a few problems when trying to make it open at the borders (flows into the void). ...
0
votes
0answers
10 views

Should the Sprites in my Boids implementation be backed by model objects?

This question is about the proper way to architect an implementation of Craig Reynolds Boids algorithm. I have an Agent object like this: struct Agent: Equatable { let identifier = ...
0
votes
0answers
35 views

Non-real time simulation of overlapping repulsive balls

I want to make a non-real time simulation of overlapping repulsive balls, initially in 2D and later in 3D. With "non-real" I mean that rendering is not needed after each time step. First of all, ...
0
votes
0answers
34 views

Circular motion

I'm working on a to-scale simulation of the Solar System with HTML5 Canvas but a problem appeared which I am unable to solve. All the astronomical objects I've added have a point-of-reference (i.e. ...
0
votes
0answers
389 views

Run a few seconds of simulation just after loading a scene

I'm looking for a way to execute 3 to 15 seconds of simulation once a scene is loaded. The problem is: some objects can be left suspended in motion while the player exits the scene. their state is ...