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
3
votes
4 answers

Wheel Collider has different rotation with the wheel GameObject

I want to add a wheel collider in my car wheel but it comes with 90-degree rotation. This is the image: How can I adjust the collider to the car wheel?
3
votes
1 answer

Map format in 2d racing game

I have little experience in writing a simple games on XNA, but now i dont have knowns to solve my problem. So, i want to write simple racing 2d-arcade, and i dont know how i can do maps for this game. I decided do this so: I draw a picture-map in…
Saska
  • 1,021
  • 6
  • 19
  • 32
2
votes
3 answers

stable-baselines3 PPO model loaded but not working

I am trying to make an AI agent for playing OpenAI Gym CarRacing environment and I am having trouble loading saved models. I train them, they work, I save them and load them and suddenly the car doesn't even move. I even tried downloading models…
brownie
  • 121
  • 9
2
votes
0 answers

what mean these error when tuning a rf with tune_race: Error : arrange() failed at implicit mutate() step. x Can't recycle input of size 0 to size 1

I am adjusting a random forest with a single numeric variable. The structure of the data table is as follows: tibble [617,622 x 29] (S3: tbl_df/tbl/data.frame) and I split the data: set.seed(123) data_split <- initial_split(data, strata = var_class,…
2
votes
0 answers

Is there a way to create engine rev sounds in python?

I want to create engine rev sounds (similar to the RevHeadz app on android / apple) using python. Is there a library or a way to do this? I tried increasing frequency of a sample audio file as the revs increase, but I don't know how to change…
2
votes
1 answer

Unity3D BezierCurve - Spline Walker Following AI?

I've been struggling to create a game with a competent (but fair) racing AI, and I have several constraints that I'm trying to meet. Here's the conditions in order: 1.) The AI logic and player controls BOTH share the same car controller to drive and…
2
votes
0 answers

Creating A Racing Line For an AI Path

I am currently creating a top down racing game ( or trying! ) using SpriteKit. I am creating tracks procedurally with catmullrom splines created from points. I have access to three sets of points, the inside of the track, the outside of the track…
Jason
  • 118
  • 12
2
votes
2 answers

Set the maximum and current speed of a car in Phaser

I am making a top-down racing game using the Phaser framework which uses JS. I am having some trouble getting the car to slow down, at the moment it just stops when no button is pressed. I want it to slow down to stopped. Here is my code so far: …
2
votes
1 answer

How to calculate the slope of a point on a terrain data (e.g. Digital Elevation Matrix)

I want to implement a 3D car racing game and I need to approximate the magnitude and the direction of the slope of any arbitrary point on a terrain. Terrain Data Format: - heights[ ][ ]: 2D array of floats (representing heights in meters) - unit:…
Benji Mizrahi
  • 2,154
  • 2
  • 23
  • 38
2
votes
1 answer

Flash racing game physics

I want to make AS3 top-down racing game. I wrote core code, but now I want to make game more realistic. I need some physics (acceleration, steering, drifting and etc.). Problem is that I suck in physics and math. I need some materials for that stuff…
Gugis
  • 519
  • 11
  • 24
2
votes
1 answer

Moving sprite in Andengine

I made a racing game in andengine.The car is moving by MoveModifier().The car is dynamicBody at the same time.But the dynamicBody characteristic of car is losing when it is moving. (enemy1=car) Sprite enemy1=new Sprite(0,0,this.enemyRegion1); …
user1391058
  • 265
  • 4
  • 19
1
vote
0 answers

How to sort GPS points in clockwise direction (non convex shape!)

I am generating a racing line for a track shown in the figure. However, I only have the unordered points for the boundaries. How should I sort all these GPS points in a clockwise direction that the vehicle can track? Same goal as the problem here,…
1
vote
1 answer

Physical car sound simulation in car racing game

i have been thinking how to create realistic sound for a car. The main sound is the engine, then all kind of wind, road and suspension sounds. Are there any open source projects for the engine sound simulation? Simply pitching up the sample does not…
Tornado
  • 1,069
  • 12
  • 28
1
vote
1 answer

Getting error "There is no agent for MYSELF to refer to" after new procedure is added, but worked before. (Netlogo)

I am trying to simulate an F1 race where the cars go around different tracks and need to pit when their tyres have degraded enough. They stick to the patches that are the track color (black). I have the code where I get the cars to follow the track…
Koolade786
  • 11
  • 2
1
vote
1 answer

Infinite map in Unity 3D

I'm working on my first project on Unity 3D, I'm making an endless racing 3D. I took a highway asset from the Unity Store. The road isn't straight, it has many curves and is very long. I would ask you: how do I make the road endless?
bova1973
  • 19
  • 2
1
2 3 4