Questions tagged [racing]

This tag is for questions related to racing games and simulations, their development, resources, 2d / 3d modelling, scripting, creating realistic handling, collisions, rotation of the wheels etc.

This tag is for questions related to racing games and simulations, their development, resources, 2d / 3d modelling, scripting, creating realistic handling, collisions, rotation of the wheels etc.

54 questions
0
votes
0 answers

Gym CarRacing-v1 kernel crashes

I have a conda env with python 3.10.6 and gym==0.23.1 I open a new ipynb in my vscode and run import gym env = gym.make('CarRacing-v1') and the kernel crashes with a message The Kernel crashed while executing code in the the current cell or a…
0
votes
1 answer

OpenAI Gym CarRacing

I want to create a reinforcement learning model using stable-baselines3 PPO that can drive OpenAI Gym Car racing environment and I have been having a lot of errors and package compatibility issues. I have currently this code just for random…
0
votes
0 answers

Python Simulated race game

I've been struggling to figure out how I can make a simulated race game using 6 players (no graphics). I've been able to program the rolls and display, but can't figure out how to create a betting system starting at $1000. Need odds for each racer.…
0
votes
2 answers

Thread protected variables from inside a threaded function

I writing a simple raytracer plugin for a software that generates the pixels from a multithreaded function. the pseudo code is Scene* scene; void engine_(int y, int, x, pixel& out){ // this function is threaded for each orizontal line y Buffer*…
ytrox
  • 1
  • 4
0
votes
0 answers

Get properties connected steering wheel

I am using C++, Qt5 and SDL in my app with a steering wheel. I need to detect properties connected a steering wheel (minimum and maximum rotation angles), but I do not know how to do this. Steering wheel have different limits rotation angles so I…
Uhno Semen
  • 21
  • 6
0
votes
1 answer

Endless Prefab Instantiating with different position and rotation

Hello StackOverFlow Folks, I am working on a game that will use some sort of object pooling/instantiating system. My goal is to create an endless track with my prefabs in the first image below. I want to choose a random prefab each time and splice…
0
votes
1 answer

How can I store lap times in leaderboards for iOS and Android using Unity

I am trying to save my lap times to the iOS leaderboards and Android leaderboards from unity. For some reason I can't get it in the right format for the lap times to show correctly on the leaderboards. Does anyone know how they need to be formatted…
JustLiam
  • 1
  • 1
0
votes
0 answers

My collision resolution for a top down racing game doesn't quite work

Sorry for the miserable english, I'm working on the collision resolution of a top down racing game. The detection of the collision is made out of an image that contains two colors(white being a wall and black being not a wall). I just look at if the…
0
votes
2 answers

acceleration-field for unity3D racing game, c#

for a motorcycle racing game I want some parts of the track to increase the speed of the motorcycle. I have a public float for the speed, which shows the speed in the inspector. I added a plane with a Collider, which is a trigger and has the tag…
0
votes
1 answer

Offset in Tilting Phone. Accelerometer Bug

I am making a somewhat-racing game. The car automatically moves forward, but to turn it sideways, I measure the rotation of the phone. Since I have to measure the acceleration on the x axis, I use: Direction.x = Input.acceleration.x *…
0
votes
0 answers

How to implement traffic system efficiently in Unity game to run smoothly on mobile device?

Recently developing a racing game, game is fine but when i added traffic system (AI cars with waypoints follower) the game becomes laggy ans slow. I used almost 300+ more cars with rigidbody and box collider attached. I searched about the solution…
XpressGeek
  • 2,889
  • 3
  • 23
  • 27
0
votes
1 answer

Xna racing game on multi monitor setup or alternatives via C#

I'm developing a car game where a person uses a wheel on a pc connected to two projectors. One projector should show the front view and the other the view from the back of the car. The object of the game is to park the car in a parking place. I…
tomato
  • 96
  • 2
  • 13
0
votes
1 answer

Pygame: Racing Game Collsions

I am relatively new to Pygame and trying to make a top-down racing game. Everything has currently been made and is ready to go! However, I am unable to make proper collision detection between walls and background of the "level". What I want to…
0
votes
1 answer

Fake 3D racer in SpriteKit

I read this article on creating a old school racing game like Outrun or Lotus. Link to article The code there is based on a HTML canvas element and JavaScript. To achieve the 3D effect the author segments the race track and draws simple 2D polygons…
snorge
  • 114
  • 9
0
votes
1 answer

How to setup camera in Unity 3D Horse Racing game

I am building a horse racing game in Unity3D, I have problem with camera: Currently, my camera only focuses on one fixed horse (ex, horse No 1), so it causes when this horse is far away from others then there will be only one horse appeared on…
Bruce Vo
  • 45
  • 1
  • 8