Stack Exchange Network

Stack Exchange network consists of 175 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
28 views

Clutch slipping effect

I have modeled a 3D bus so now I'm working on the motor and gearbox script for a bus game simulator. All seems to be ok but I want to create a clutch slipping effect and I'm really disapointed. Here ...
0
votes
0answers
19 views

Whats the minimal setup to create a quadrupeds physics creator for a simulation in Unity? [closed]

I have been looking around to create a simulation to run reinforcement learning algorithm on quadrupeds. Hearing how the Unity editor is the go to for researchers due to its ease of use and rapid ...
0
votes
0answers
27 views

Wind Trees from Book of the Dead in a Separate Unity Project

I want to make wind work on a project separate from Book of the Dead demo. I've been able to import the tree assets, plus the WindControl script and two helpers ...
2
votes
2answers
79 views

most compact way to represent dice face translations rolling in cardinal directions

I'm making a 2-D dice rolling game in BASIC (think mechanics similar to Devil Dice on the Playstation, but top-down 2D graphics). I'm trying to accurately represent the transitions of a die when ...
1
vote
0answers
30 views

Keeping simulations in sync over long periods of time

I'm working on a multiplayer game which involves a huge amount of predictable AI enemies, and a few other players. The enemies are the most important to be accurate, because the game involves pixel ...
1
vote
2answers
60 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
1answer
37 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
45 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
80 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
72 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
73 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
105 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
290 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
94 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
103 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
66 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
61 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
37 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
178 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 ...
3
votes
1answer
404 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
275 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
80 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
138 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
38 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
103 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
64 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
106 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
64 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
19 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
390 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
189 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 ...
1
vote
1answer
91 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
77 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
76 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
295 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
348 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
630 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
vote
2answers
335 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
141 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 ...
6
votes
1answer
296 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
792 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
82 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
559 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
85 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
85 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
326 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
174 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 ...
0
votes
1answer
67 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: ...