Questions tagged [simulations]
The imitation of a real-world process or system.
197 questions
4
votes
1
answer
383
views
Correct order of entity updates and collision detection
I'm trying to simulate a number of units walking in a single file. My update loop looks like this:
...
3
votes
2
answers
507
views
How should I efficiently store faction relationships?
I'm working on a game that follows the life of a powerful magician as she lives, dies, and reincarnates dozens of times across hundreds of years. Meanwhile, empires rise and fall around her--she can ...
2
votes
1
answer
118
views
How to make the inside of a cube accessible
I have a cube, it is made up of smaller cubes each making the big cube 8x8x8. The cube is the map. The player of the game needs to be able to appraise the entire map and understand it without having ...
1
vote
0
answers
151
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).
...
3
votes
0
answers
83
views
How can I simulate these two droplet? [duplicate]
Below is a two droplet merging together,in 2d.
I want to simulate the behavior when I exert combination force(through mouse or fling force on touch screen) on one ...
1
vote
1
answer
816
views
Simulation of ball movement in a 3d landscape. The easiest way?
I have a landscape(generated via Perlin noise) and a ball. I want the ball to move along the geodesic(implementation of basic physics: gravitation, friction). I thought to do raycast around the ball ...
6
votes
1
answer
931
views
Elegantly simulating NPC movement in inactive areas
My AI is utility-driven in a similar pattern to The Sims, where all unique behavior is coded into interactable objects, and the only thing an NPC does is decide which object they wish to use, path to ...
2
votes
2
answers
511
views
How do I model diffusion and heat?
So I'm trying to solve a heat/diffusion equation for a continuous space, but I'm not opposed to a grid solution. I'm a little short on the maths needed but have made it work so far.
If I model ...
23
votes
7
answers
17k
views
Transmission implementation in a car game
I'm trying to create a simple car game with manual gear changes. However, I'm having a bit of trouble implementing the gear changes.
Here's my current code for the "car":
...
5
votes
1
answer
2k
views
Simulating Smartphones on PC with Unity
I want to make a game that depends on the phone orientation (changing shoot direction with tilt), however I need to test this on PC. So is there any tool I can use to simulate the orientation of the ...
4
votes
1
answer
890
views
Simple Water surface simulation problems (GDC2008 Matthias Muller- Hello World)
Im attempting to implement a simple height field water surface simulation outlined in Matthias Muller's GDC 2008 talk. "http://www.matthiasmueller.info/talks/gdc2008.pdf"
I can't seem to see why it ...
4
votes
2
answers
738
views
How do I calculate legal moves in a travelling board game?
I'm making a traditional roll-the-dice-and-move style board game.
Players move along the white squares on the board (see image) and may move in any available direction from a junction.
Players must ...
8
votes
2
answers
2k
views
How can I simulate a floating character in Box2D?
I am creating a jump'n'run game using the Box2D physics engine. The main character should be a robot like creature without legs, floating over the ground powered by a jet engine.
The motion should ...
3
votes
1
answer
2k
views
Does client side prediction sync with the server in the past?
I've spent some time now messing around and just trying to learn dead reckoning and client side prediction for the fun of it. Most of what I do doesn't need it, so i've never had a need to go down ...
10
votes
6
answers
4k
views
How can I maintain saved game backward compatibility?
I have a complex sim game I want to add save game functionality to. I'll be updating it with new features continually after release.
How can I make sure my updates don't break existing save games? ...
0
votes
3
answers
570
views
Simulating (Human) Needs? [closed]
How can I simulate the vegetation (of a human being)?
To simulate Hunger for example, I use some kind of saturation based system now. Means that every food-object saturates differently and the ...
4
votes
1
answer
5k
views
Advance efficient water physics simulation [closed]
Summary: I am looking at creating a large(ish) ocean which multiple ships will be present in doing their own thing. I want the ocean to be a life like as possible but without compromising too much on ...
8
votes
2
answers
1k
views
Representing feelings such as temperature, pain, smell, taste, hunger, and thirst immersively
In a totally immersive, simulation-type role-playing game, the player should not look at bars or numbers to keep track of his or her stats, so another method of showing these stats is needed. For ...
5
votes
3
answers
652
views
Particle dynamics simulation and conservation of energy
Suppose you want to simulate the dynamics of a particle subject to Newton's laws of motion. We could just fix a discretization of the time dt and solve approximate ...
7
votes
2
answers
2k
views
make a sphere rolling on a roulette mesh stop at predetermined place
I have a roulette and a ball(sphere) placed on it. When the game begins the roulette spins. The spinning of the roulette and gravitational forces on the ball makes it roll along the 3d roulette mesh.
...
1
vote
1
answer
437
views
Need help with a complex 3d scene (using Ogre and bullet)
In my setup there is a box with a hole on one side, and a freely movable "stick" (or bar, tube). This stick can be inserted/moved through the hole into the box. This hole is exactly as wide as the ...
16
votes
1
answer
1k
views
How to simulate early politics? [duplicate]
I'm making a historically accurate game where the player can interact with past times and shape the future. The entire game is scientifically generated with math and real physics. (no, it won't have ...
10
votes
4
answers
4k
views
Interstellar Economic Simulation
I'm designing a game reminiscent of Elite or Escape Velocity, those old space trading games, where you play a traveling merchant in space.
I'd like to have the game's economy at least resemble a real ...
4
votes
1
answer
1k
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 ...
0
votes
2
answers
863
views
How to build a math module and simulate a system?
For example, in the classical game SimCity:
an economic model to simulate the supply and demand of the city, then calculate how many people live in each building, how many people work there.
a traffic ...