Questions tagged [simulations]
The imitation of a real-world process or system.
197 questions
4
votes
1
answer
241
views
Train simulator - approach to cars movement
I'm prototyping a train simulator and running into design issues with physics and train car movement. The scope is similar to games like Run8, SimRail, or Derail Valley.
Requirements:
Realistic train ...
0
votes
1
answer
197
views
Is it possible to make a game with a fully simulated world, with dynamic characters and environment?
Context
I really enjoy playing Skyrim. I have installed mods that make the game feel more immersive, like weapons breaking, survival mechanics, no visual information, pitch dark dungeons, etc, etc...
...
1
vote
1
answer
138
views
Tile map atmospherics
I am thinking about a game prototype and want to try to implement tile map atmospherics like SpaceStation13/14 does. I am pretty lost on how to implement this though. Can I use something like the ...
0
votes
0
answers
217
views
Generate Path3d procedurally and avoid it intersecting with PhysicsBody
Godot Version
4.3
Question
how to generate Path-3d procedurally and avoid it intersecting with PhysicsBody3D. This 3d-path will connect two StaticBody3D. The start and end points of Path3D point ...
1
vote
2
answers
145
views
Bullet Physics stopping model from going through static object
Bullet physics tunneling problem:
yellow box(dimensions: 2f, 2f, 2f) that falls under gravity. Its Bullet Physics are set as such:
...
0
votes
0
answers
97
views
Collision of two rigid spheres with spin
I'm trying to create a particle simulation (solar system kind). Until now my particles have no spin so the collision is rather simple
...
0
votes
1
answer
267
views
How do I code realistic rocket engine plumes in Unreal Engine 5.3.2
Right now, I am programming the engine plumes for a game called Spaceflight 3D, or basically a better version of KSP2 that my team of developers are working on. Mainly to be made for my company to ...
1
vote
0
answers
291
views
Cheap 2D fluid simulation at low resolution
I have a 64x64 display and an accelerometer.
I want to run a 2D fluid simulation and take a reading from the accelerometer as the gravity vector.
I'm going to be doing this on fairly low-end hardware (...
1
vote
1
answer
198
views
How can I simulate locking or limited-slip differentials in Unity?
I have been developing a racing game in Unity for a few months and I can't find any information on how to simulate a car differential.
Right now I just split the torque generated by the engine 50-50 ...
0
votes
0
answers
104
views
Is it possible to create an actual working physics-based ball bearing in Roblox engine?
Will it allow for making actual wheels, gears and roller coasters?
1
vote
2
answers
395
views
Bullet Physics Multi-threading Rigid Body transform jittering issues across threads
I've been working on a game using Bullet Physics for C++ as well as SDL for the windowing (with OpenGL)
I've recently threaded the game, so that a separate while loop runs the Physics Simulation, ...
0
votes
1
answer
241
views
Minecraft-like simulation optimization
I am working on a voxel game similar to Minecraft. The goal would be to handle more entities but also offer a more immersive experience by the fact that the player does not need to worry about loading ...
0
votes
0
answers
185
views
How is terrain collision handled
GJK can be used for all shapes but what if the points in a figure aren't indexed, then how can we get the Minkowski space by adding the correct pairs of points even though we don't know them, and also ...
0
votes
0
answers
186
views
Simulate physically-accurate fish swimming in water
I would like to develop a simulation/video-game of some fish swimming in water. This simulation needs to have real time performance and the fish movement should be as physically accurate as possible. ...
2
votes
1
answer
414
views
Implementing clutch kicking in a racing simulator
I'm currently in the process of programming a racing simulator. I currently have a full drivetrain set up that includes an Engine, Transmission, Transfer case, and differential.
The engine has two rpm ...
0
votes
0
answers
149
views
Box2D simulation super slow during vsync
I've been developing my own game engine for the past few days and it's time to add physics. But before adding it in the editor itself, I opened a separate project and tried box2D with SDL2. I always ...
0
votes
0
answers
99
views
Motion of a cube after it bounces off a floor
I am trying to simulate what happens when a cube hits the floor after free fall. I am considering a situation in which cube hits the floor with its edge. There is obviously reaction force from the ...
2
votes
1
answer
407
views
Climate/weather model for turn-based game
I am looking for a model to simulate weather patterns over long time periods on a tilemap.
The basic idea is to have 3 tile types:
mountains
land
water
Over the course of game, the climate of land ...
1
vote
0
answers
90
views
Rotating a chain of linked rods without penetrating a surface
I'm developing a game where the game character is a catheter that is simulated as a linked rod (4 particles linked together) and it is in an environment with solid walls. The objective is to maneuver ...
3
votes
1
answer
397
views
How to navigate a moving 2d spaceship under newtonian mechanics to a point in space?
I am creating a real-time game where ships move through space using basic laws of motion. The ships move by rotating (instantly for our purposes) to an angle and then firing their engine to accelerate....
0
votes
0
answers
60
views
Best approach to model slipstream?
I am looking for a way to model slipstream effect in videogames.
The two use cases I want to look at are a simple racing game and the simulation of a peleton (a big group of road bike riders), both in ...
0
votes
0
answers
401
views
Plot rigidbody path simulating magnus effect
I am trying to create a method that will plot the path a rigidbody will take when simulating a magnus type effect with no gravity in Unity. I realize this approach is a drastic simplification to the ...
0
votes
0
answers
107
views
How to simulate multiple sizes of clothing on a character?
I'm new to Unreal Engine. I've searched a lot about creating clothes for characters, but haven't succeeded in finding a working solution for this request.
I'm trying to create a virtual try-on ...
1
vote
0
answers
96
views
How do I simulate the forces acting on this hydraulic system?
I've been trying to create an algorithm to simulate a specific hydraulic suspension system for animating a car rig. Below are the schematics for the hydraulic system:
All same-color lines are ...
2
votes
2
answers
491
views
Population growth equation
I'm at the very early stages of designing a game in which the population increases / decreases according to other factors (eg. crop yield / food scarcity, industrialization, global warming?, wars, ...
0
votes
0
answers
113
views
How do I make a grid with heat data?
So I am working on a game in which I am working on a temperature system that goes about like this;
Lines of latitude will be markers across the map, starting at 1 (north pole) going to 200 (south ...
2
votes
1
answer
417
views
How do you quantify a relation between 2 countries?
I am trying to create a computer game similar to that of Europa Universalis or Civilization. FYI, those are grand strategy games - you select a country and try to guide it through the years in order ...
3
votes
1
answer
252
views
Approximating off-screen action efficiently in a simulation game?
I have a character building constructs all over a pretty large map. My game blends elements of RTS and fast paced action in a room-based environment where players can only see one room at a time.
I ...
0
votes
0
answers
150
views
What's a good architecture for a simulation?
I have a concept that involves a world being simulated. Lots of entities and processes acting upon them, not to mention interactions, etc...
Every SimulationTick, ...
1
vote
0
answers
137
views
Faster Alternatives to Jacobi Pressure Solving in Navier Stokes Simulation
While Jacobi itself is quite simple it needs at least 10 iterations to produce acceptable results. However that results in a higher total time cost than the rest of the Navier Stokes Simulation ...
0
votes
0
answers
275
views
How to add mouse aim to flight script
I am making a flight combat game and I want to add mouse aim to control to the flight script I am using. Is there any way I can add mouse aim to my script similar to Warthunder's mouse aim. Mainly ...
1
vote
0
answers
236
views
How can I create a heightmap for ocean surface simulation?
I am working on a game that is based on boats fighiting each other. The game is finished but due to some license incopatibilities, I have to change how I simulate the surface of the sea.
What I used ...
1
vote
1
answer
122
views
How to best simulate the space in a boxing game to account for footwork and angles?
When trying to prototype a (top-down, so far) boxing simulation I've run into a huge roadblock with trying to set the space in which the boxers will fight, because it's important for the fighters' ...
0
votes
1
answer
85
views
Sphere - AABOX Edge detection
I am trying to implement a particle-AABOX edge collision, the below images represent, two timesteps(dt) where the spherical particle is accelerated by gravity.
I have the particle center C and its ...
2
votes
1
answer
941
views
Generating Realistic Looking Wire in Unity
I'm designing a game that involves the simulation of a breadboard. I would like some advice on the best way to simulate jumper wires used to connect various places on the breadboard together. I have ...
0
votes
1
answer
1k
views
Simple real-time 3D wind simulation
I am a 4th-year student in the apply math department. It's my final year, so I am working on my bachelor's thesis. The topic is "Real-time weather effects simulation for grassland". The huge ...
3
votes
1
answer
136
views
Is it possible to correctly catch up a particle system simulation based on long delta time between many frames?
I have a particle system with a physics simulation integrator based on delta time (elapsed time between frames) which is implemented on the GPU in a compute shader. I also have a frustum culling ...
0
votes
0
answers
171
views
How do multiplayer turn based games handle computation
I am building a turn based multiplayer simulation game that at the end of each turn takes all of the users inputs/actions then compiles all the data and interactions returning the result of the ...
2
votes
1
answer
221
views
A ball hits the corner slightly, where will it deflect?
I am currently making an iOS Game but I have a small problem. The game is simply a ball which you can control to avoid obstacles and find the food. When the ball hits, e.g. the top or the bottom of an ...
0
votes
2
answers
232
views
How to make planets "stay together" on collision
I working on a 2D planetary orbit simulator and I've encountered a problem regarding the collision of planets. Currently, here is what I have
...
2
votes
1
answer
969
views
Simulating Gas Density and Pressure in a 2D World
I'm building a small spaceship simulation app that looks a lot like a game for an upcoming talk I'm giving where I use this sample app to teach the F# programming language.
This small app is ...
3
votes
1
answer
4k
views
Optimizing falling sand simulation
So, for the past couple of weeks, I've been working on a falling sand simulation inspired by games such as The Powder Toy, Noita, and Sandspiel. I've been making it in Love2D and I'm please with what ...
1
vote
0
answers
79
views
How can I realistically simulate audio for multi-sensor processing?
I am performing audio simulations in Unreal Engine 4.
Ideally, I need realistic audio propagations. So microphones at multiple locations will experience propagation delays related to their distance ...
0
votes
1
answer
172
views
2d navigation for physics-based car
i'm making a game, one npc is a car with spear in head, he try to hit the enemy (yellow pot in image) with the spear point.
here is the promble ,the car is physics-based , it has veloctiy ,max ...
0
votes
0
answers
408
views
Kinetic sand simulation
I want to simulate Kinetic sand's behavior in my game. I could implement operations such as slicing and cutting using simple mesh cutting algorithms but I want to implement complicated operations such ...
0
votes
1
answer
193
views
Managing large amounts of data and processes for an economy management game
I'm making a management game in the vein of Anno or Stellaris, but I'm unsure how to manage all my data efficiently.
Short example: the player controls multiple islands. Each island has factories on ...
0
votes
1
answer
194
views
Design pattern for AI cooperation
I'd like to implement an AI for my game, which has agents that should be able to take care of themselves.
The Sims use a system of smart objects that advertise their services, a design pattern that ...
1
vote
1
answer
191
views
Let a point drive on a polyline
I want to create a polyline which should be quite smooth for my game. A point is following moving on the line, but can accelerate/brake and has to get slower in corners.
In the end I want to set up ...
0
votes
1
answer
1k
views
Is it possible to run simulation of two scenes simultaneously in Unity3D?
I have got 2 scenes in a unity project and want to play simulation of both the scenes in parallel. Has anyone tried this?
Thanks!
0
votes
0
answers
106
views
In godot, how could I make an explosion not destroy occluded terrain?
This game is in 2D, and is made out of blocks.
Normally, I would simply erase blocks that aren't indestructible and are within range of the explosion. However, if blocks are behind something ...