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
1
vote
1 answer

why is sideways tire slip separated from forward slip on Unity wheel collider?

I finally understood why my car in unity can't drift/powerslide like cars do in other racing games. Feel free to skip the boring part and only read the question down below if you know this issue. problem: Not realistic car grip/drift happens because…
Tomino
  • 33
  • 6
1
vote
1 answer

Would it be possible to use a Neural Network / AI to 'optimise' the time taken for the race?

The program when completed will aim to use AI to get the quickest possible time. The car can accelerate, brake or move at constant speed. There will be sections throughout the code (which represent corners) where the speed will have to be = to or…
1
vote
1 answer

Data structure for expressing the traffic condition of a road in game

I want to design a data structure with OOP for emulating traffic situation in a racing game. The requirements are as below: Each vehicle can know on which position of a lane, which lane, and which section of road it is driving. For each road, it…
wureka
  • 731
  • 1
  • 11
  • 26
1
vote
2 answers

How to get car on top of the racetrack

i am working on a top down racing game, and currently i am trying to get the car to go on top of the racetrack. There are 2 cars, one is the computer's car (not finished) and the other is the user controlled car, however when i run the programme the…
Y2J
  • 45
  • 5
1
vote
2 answers

How can i make the car visible on top of the background?

I was confused about how to make the user's car be visible on top of the background. At the moment, when you move the car the track and car move as they should, but the car is under the racetrack. I have tried different blitting orders and i…
Y2J
  • 45
  • 5
1
vote
0 answers

Racing line following

Let's say, there's a 2D racing simulator where we've got some sort of physics and a list of way points. The physics is known, so we can predict car movement basing on given commands. At any moment we have the current car state (position, velocity,…
lama
  • 11
  • 1
1
vote
1 answer

Unity : Using Accelerometer to Build Racing Game in Android

I want to develop racing game in 2D using Accelerometer with Unity. The sensor will make car rotate left or right like this figure. When i flip smartphone to right, car will turn right, and when i flip to left, car will turn left. I use…
ariyandi
  • 149
  • 2
  • 15
1
vote
1 answer

A* algorithm that takes account velocity

I'm developing a racing game like http://harmmade.com/vectorracer/ and I have implemented the A* algorithm to use for the AI players. The algorithm is working fine for 1-tile movements, but I don't want the AI players to only move 1 tile at a time…
user3242853
1
vote
2 answers

How to stop flickering in this code

import java.awt.*; import java.awt.event.*; import javax.swing.*; /* */ public class RaceApplet extends JApplet implements KeyListener { private Image player; private Image bg; …
1
vote
4 answers

Sorting Racers in timing application

I am creating an application which uses the AMB MyLaps decoder P3 Protocols. I can't get my head around a way to sort the racers out based on laps and lap times. For example, the person in 1st has done 3 laps, the person in 2nd has done 2 laps. But…
Jake Evans
  • 978
  • 5
  • 13
  • 33
1
vote
2 answers

Racing game with following camera

I'm trying to figure out how to create a racing game in flash (like many tutorials already out there on the web). However instead of keeping the level static and moving the car around - Is it possible to keep the player's car motionless in the…
PROWNE
  • 39
  • 1
  • 9
1
vote
1 answer

Tutorial for steering behvior : Path following

I am working on a car racing game. I am almost done with prototype, but one thing.I am unable to add opponent cars. I searched for steering behaviors, I found a cool tutorial for Wandering. But couldn't find much useful on path following. I found…
Shailesh
  • 3,072
  • 3
  • 24
  • 33
1
vote
0 answers

Shooting a bullet from wrong starting point

I created a racing game in andengine.There is a player which is size 100x30px,like a rectangle.And there is fire() function to shoot bullet, code is below.It works fine.but problem is when player is rotating.player is a car image.so they rotating by…
user1391058
  • 265
  • 4
  • 19
0
votes
1 answer

OpenAI gym CarRacing-v2 episode termination

I am using gym==0.26.0 library and am trying to understand what means that an episode is finished/done in the CarRacing-v2 environment. In the documentation is written this. ### Rewards The reward is -0.1 every frame and +1000/N for every track tile…
brownie
  • 121
  • 9
0
votes
0 answers

Gym CarRacnig-v2 adding obstacles on the track

I want to add obstacles on the track of the CarRacing-v2 environment found in the python gym library (version 0.26.1) https://www.gymlibrary.dev/environments/box2d/car_racing/# The only clue that I found was this repo…
brownie
  • 121
  • 9