Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [simulations]

The imitation of a real-world process or system.

0
votes
0answers
17 views

How to Simulate Tectonic Plates using Flood Fill in Unity2d

How do I use flood fill in Unity2D to make tectonic plates? I've already wasted many hours trying to find something to help, and I couldn't find anything explaining how it was done.
0
votes
0answers
27 views

Environmental simulation: soil moisture and fungus

I'm trying to construct a fairly natural-feeling game world set in a forest where soil moisture is important -- soil moisture should increase as it rains and decrease from evaporation (more or less ...
1
vote
2answers
53 views

Calculate gravity between two intersecting bodies

I've been working on a 2D gravity simulator for some time and I'd like to add some surrealism to it by creating planets that can't collide with other planets (passing right through them). The problem ...
0
votes
0answers
16 views

Sat.JS finding the collision vertex

I am making a simulation in Javascript. I am using Sat.js. I have polygons in the simulation such as triangles and squares (these float around rotating) and 'laser beams'. The laser beams are just ...
0
votes
0answers
47 views

How can I structure my game to simulate 'real life' objects and events, and their interaction?

I'm currently in the planning phase of a game, but I'm a bit stuck on the architecture. I will need to simulate some "real life" objects, but to keep it simple, let's look at this example: Let's ...
0
votes
1answer
32 views

How do I move many “static relative to each other” objects around?

I'm currently building an Elevator Bank simulator in Unity3d and I'm stuck on how to reduce the amount of objects it's going to generate when it's done. The simulator will consist of one player (for ...
0
votes
0answers
19 views

Baseball Sim Engine Research: Gathering historical probabilities of events and outcomes?

I'm building a text-based baseball simulation engine that uses outcome probabilities to move the game forward and I want to build the engine so it generates semi-realistic outcomes. To do that I need ...
2
votes
2answers
38 views

How do I use delta time time-stepping in a triple-buffering scenario?

I am creating a graphics application in Metal. One of the things we are suggested to do is to use triple buffers in order to allow for the GPU and CPU to work more in parallel. Essentially instead of ...
0
votes
1answer
70 views

How can I access an OpenGl buffer from within a GLSL 330 shader?

I am currently attempting to create a simulation using OpenGl's GPU acceleration for both the simulation computations and rendering. The rendering portion of my simulation is complete and working, but ...
1
vote
0answers
71 views

Is it possible to run two unity simulations at the same time on same computer?

I know it is possible to open multiple unity projects at the same time on the same computer but is it also possible to run two unity projects at the same time and on the same computer. I tried running ...
0
votes
0answers
58 views

What is the best data structure for stock exchange simulation game?

I am developing on online web application that simulates the stock exchange market. I'm using Microsoft Azure as the development platform for this, along with Azure Storage Tables. What is the ...
1
vote
2answers
97 views

Simulating an aging population

Introduction: The main idea is to "classify population as they age". Let me further explain it with an example: Example: There are 50k population (we are not going to care about if male or female ...
3
votes
2answers
226 views

Two Army Battle Simulator

I'm currently developing a small game project on unity (with purpose of learning C#) where each player controls a base and can build buildings, do research, build units, pretty much the basis. I ...
1
vote
2answers
71 views

What is the unit of speed in unity3d?

I have cars in my unity scene, I am not sure in what units speed is specified in unity.
1
vote
0answers
68 views

Can running unity of a system with nvidia graphics card speed up the simulation?

I have a nvidia GTX 1080 graphics card in my computer, I don't know if unity by default makes use of GPU. Does having a GPU helps to speed up unity simulations.
0
votes
0answers
62 views

How to speed up Unity Simulation?

I am trying to collect some data from UNITY but it is taking forever. I increased the framerate to 5 which accelerated the simulation without compromising the output but still it's slow. I am ...
1
vote
0answers
54 views

Simulating a curled phone wire in Unity

I'm made a model for a project at work (depicted in the image bellow) that requires me to create a somewhat realistic movement on a curled phone wire. Here is what i have tried so far: I've tried ...
0
votes
0answers
36 views

Conversion from lat-long to Cartesian coordinates 's result is different with real location

I'm trying to put building from real lat-long in my Monogame app (4 buildings in my school, please check the image with the blue circles) But after some convert method, it went terribly wrong (please ...
4
votes
1answer
170 views

Effective & Efficient Way to Simulate a Desert

Introduction I hope that this question isn't too broad, my apologies if it is. Anyway, getting to the point, our video game is set in ancient Egypt and, to nobody's surprise I'm sure, Egypt has a lot ...
2
votes
1answer
320 views

Is there a way to run Unity without rendering the scene on the monitor (headless)?

I am doing some machine learning and I get my environment from Unity in the form of images but the training is taking too long and it keeps me from doing anything else on my system. Is there a way to ...
6
votes
4answers
265 views

physics engine without time steps

I'm looking for physics engines that doesn't use time steps. I don't think time steps are reliable, and I don't like how without tweaking the engine a bullet going too fast can pass through a wall ...
2
votes
2answers
68 views

Impact of increasing physics simulation rate

I am working one Mini Golf game development using Scenekit (iOS). To fix one of the problem with Scenekit, I have to increase the physics simulation rate by 4 times. Questions: What is the impact ...
0
votes
1answer
94 views

How do I prevent floating and jittering when on the ground and using spherical gravity?

TL;DR: My ship floats and jitters when it lands on a sphere. To elaborate on the title: I'm experimenting with a 3D space game. I have created a sphere, which in turn has a larger sphere overlapping ...
0
votes
1answer
33 views

Applying friction force not working correctly

I have a simple physics simulation I'm creating whilst following the Nature of Code tutorials on YouTube by Daniel Shiffman, at the moment I've just started learning about friction and have had a go ...
1
vote
1answer
92 views

Poisson Distribution and Traffic Flow

I'm attempting to create a simulation of car traffic and to model the flow, it seems like Poisson Distribution would be useful here. I'm still trying to get my head around the variables I would ...
0
votes
0answers
63 views

Why does my gravitational orbit gain energy so fast?

I'm using something like Verlet integration, it seems to work alright except orbits degrade very quickly. ...
0
votes
0answers
71 views

Variable Car Simulation using Waypoints

I have a single lane road and I want cars to drive along it. I want variables such as car speed and gap lengths between cars to be changeable. I have already implemented this simply using a Waypoint ...
0
votes
1answer
63 views

Is a large-scale simulation of movable land possible? [closed]

I was recently reading about a nuclear waste containment area buried far beneath the desert in New Mexico (WIPP), and upon looking at diagrams I wondered if it would be possible to create something of ...
1
vote
0answers
18 views

Term for “Massively Multiscale world browsing”?

There is a type of multi-scale world browsing that has appeared in games in the last few years and I would be interested to know if there is a specific term that this browsing is known as and more ...
1
vote
3answers
291 views

How to make a noise gradient?

Introduction: I am working on a heat map made by Perlin Noise with the next result: (Figure 1) ...
1
vote
1answer
132 views

Simulating a real camera's perspective projection

I'm trying to simulate a real camera's perspective projection of straight, parallel lines running along the ground (one-point perspective) by mapping the real-world 3D coordinates of the lines to 2D ...
0
votes
0answers
26 views

Resolving collision using Convext Cast result

For the simplicity example picture is in 2D but my simulation is in 3D. I am trying to implement continious collision detection in my world by performing Gjk Convex Cast at the end of each frame (...
1
vote
1answer
87 views

Synchronise events in Multiplayer Game!

I am trying to make a fighting game where two characters are fighting with hands or can have some weapon in their hands. It's a multiplayer game targeting initially for mobile devices. In Game, there ...
0
votes
0answers
71 views

Calculate TimeStep from FPS

If we collect fps of a game for each second of time stamp and collected them for n seconds therefore we have n number of fps values in our collection. Then we can get average fps from that collection, ...
0
votes
1answer
69 views

How to simulate camera turbulence for in-game cinematics [closed]

Are there any good algorithms for generating a convincing turbulence effect that can be applied to an in-game camera. For example, in use cases such as the viewpoint of a plane flying low and fast ...
1
vote
0answers
270 views

Drawing realistic 2d waves with SDL2 and Rust [closed]

I am making a very simple 2d topdown sailing simulator with Rust and rust-sdl2. I am having a very hard time figuring out how I should implement wave rendering. My current idea is to use a ...
0
votes
0answers
310 views

How to implement physics for steering a boat with a rudder

I'm working on a 2d boat game in Javascript and am looking to semi-realistic physics simulations for driving/sailing/steering with a rudder and engine. Currently, I'm simulating current (a 2d vector ...
5
votes
1answer
541 views

How can I simulate relatively realistic weather?

I'm trying to create relatively realistic weather patterns for my game. The simulation should handle temperature, wind, cloud formation and evolution, fog/mist, rain, snow, etc., and account for ...
-1
votes
1answer
252 views

Physics engine and squishing of stacked objects

I have a general question that seems to apply to most physics Engines (Box2D, Unity, Matter.js, …). I'm trying to make a tower of rectangular objects that are stacked on the [static/mass=infinity] ...
2
votes
1answer
140 views

What functional abstraction to use for multi-agent simulation?

this is quite a broad question, touching a few different fields, so let me know if there's a way to narrow it down. What I would like to know is your opinions on what abstraction to use for my use ...
0
votes
0answers
152 views

Does a server-sided physics calculation kill server performance?

I want to implement a 2-player turn-based game with libgdx, networking is done with kryonet. I already set up a server that listens for new connection and matches every two new connections, creating a ...
6
votes
1answer
278 views

What are the practical differences between discrete and continuous simulations?

I've done some research regarding how to simulate a game world, and it seems that I need to decide whether I want to write a continuous or a discrete simulation. From my understanding, in a ...
4
votes
1answer
673 views

How to simulate car drivetrain (in Unity)?

One of my hobby projects involves cars. Up until now I had a quick and dirty "one class" implementation of engine+gearbox+wheels, but I thought that this is ugly, and I want to go a bit more realistic....
1
vote
0answers
71 views

How to edit visual appearance of mod in Euro Truck Simulator 2(ETS2)

Not sure if this is the right place, so here goes nothing... I want to update my truck's appearance in-game, to make it more on par with it's real life counterpart. The part of the truck I want to ...
11
votes
2answers
508 views

How is structural analysis done in games (e.g.: bridge building, Dig or Die, and 3D)?

From what I understand a typical interactive truss system would need substantial calculations since every component affects the entire system. I think you could arbitrarily stop at a given number of ...
1
vote
2answers
82 views

Simulate dirt spread (Normal distribution?)

-This question is technically more math related, but it has to do with a simulation so I am here first. I can post this in the math SE instead if needed. I am in the process of trying out some mesh ...
1
vote
1answer
84 views

Simulating Physics - dt vs formula

I was just wondering, when simulating physics is it usually a good idea to get the time delta from the last frame and apply the relevant motion equations? Something like: ...
1
vote
2answers
78 views

How can I make sure multiple player scripts all get the same amount of execution time per game tick?

I'm looking for a way to allow players to write code in a high level language, but I need to be able to keep all script instances synchronized in terms of script execution time per game tick so that ...
2
votes
1answer
303 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
1answer
173 views

How should my creatures see the world?

This may not be the best forum for this question, but I know a lot of you have dabbled in the field of general AI for games so here it is. I'm doing the cliche population evolution of creatures in a ...