Questions tagged [car]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
23
votes
7answers
11k views

Transmission implementation in a car game

I'm trying to create a simple car game with manual gear changes. However, I'm having a bit of trouble implementing the gear changes. Here's my current code for the "car": ...
15
votes
3answers
43k views

Typical Maximum steering angle of a real car

I'm building a car sim in Unity3D. I'm trying to set the properties of the car to be as realistic as possible. I can't seem to get a straight answer on Google so I thought of asking here. What is the ...
12
votes
2answers
13k views

I am looking to create realistic car movement using vectors

I have goggled how to do this and found this http://www.helixsoft.nl/articles/circle/sincos.htm I have had a go at it but most of the functions that were showed didn't work I just got errors because ...
10
votes
4answers
1k views

How to adapt pathfinding algorithms to restricted movement?

Imagine car-like movement where entities cannot turn on a dime. Say, for the sake of discussion, that when at-speed they can turn 90 degrees per second. This would in many cases change the optimal ...
10
votes
1answer
798 views

Calculate bike heading from front wheel heading and velocity

I have a simple top down bike game that I'm trying to add steering to. I would like to know how I use the heading of the front wheel to determine the heading and velocity of the bike. ...
9
votes
2answers
2k views

In very simple 3d racing games, how are collisions handled?

I was wondering how collisions in some simple 3d car racing games are done (especially in games like Outrun 2/Motoracer). In classic car racing games with complex environment (open world), I guess ...
8
votes
2answers
20k views

Do I need to obtain a license to use real car brands in a game? [duplicate]

We are small team which working on car racing game but we don't know about licensing process for branded cars like Nissan, Lamborghini, Chevrolet and etc. Do we need to buy any licence for using ...
8
votes
1answer
2k views

Differential programming for a vehicle

I am to a point on my vehicle where, when im going fast and turning, the vehicle acts weird because the inside tires are moving faster than the outside tires. So i need to figure out how to program in ...
6
votes
1answer
3k views

How to make a car move sharper at high speed?

I am working on a car-racing game on Unity 2018.1. My car works perfectly at low speed but as it speeds up, I lose control over the car and it starts to drift independently. What can I do to prevent ...
6
votes
1answer
1k views

How do I make a slot car game?

I new to game development with Unity and my first project is a slot car racer. For a realistic slot car-like-driving experience, I first build a track with a channel in the track and a pin on the car. ...
5
votes
1answer
999 views

2D Car Simulation with Throttle Linear Physics

I'm trying to make a simulation game for an automatic cruise control system. The system simulates a car on varying inclinations and throttle speeds. I've coded up to the car physics but these do note ...
4
votes
2answers
352 views

How to find the optimum path, on a road, for a car?

For the moment I have an AI car, that follows points (let's call this Waypoints), that I built by myself. Of course, it's not optimal because of my poor human hand, and car knowledge. After this ...
4
votes
1answer
1k views

How to handle collision resolution in a top-down car game?

I have a top-down car game which takes place in an arena. The game is very very light on physics, so I'm not actually using a physics engine. The cars' movement is mostly managed by a struct I called <...
4
votes
1answer
1k 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....
4
votes
1answer
224 views

What does maximum normalized frictional force mean in this tutorial?

I tried following this tutorial: https://nccastaff.bournemouth.ac.uk/jmacey/MastersProjects/MSc12/Srisuchat/Thesis.pdf, but in page 19 I ran onto a problem - I don't understand the step 4. It is also ...
3
votes
2answers
2k views

Should I calculate in meters or pixels

In my car sim I am doing my calculations in Standard Units, except for the distance which is in pixels. Is this still correct (my guess is no) or should I use Meters ? If I should use meters what is ...
3
votes
2answers
2k views

How do I make a 2D race car turn smoothly? [duplicate]

I'm making a competitive 2-player 2D racing game for a school project. I'm struggling with the movements of my car: I made it a square for testing purposes and it can move left, right, up or down, but ...
3
votes
3answers
2k views

How to do an anti sway bar for a car in Unity 5?

I have researched some examples of anti roll bars for Unity but they are all for unity 4 and bellow so they do not work in unity 5. Can someone please assist me in making an anti roll bar script in C# ...
3
votes
1answer
977 views

How to detect if an object is upright?

I have a cartoon car and it has a skid sound with the car skids. But when the car flips over the skid sound plays endlessly and its really annoying. I have a basic script that is meant to detect when ...
3
votes
1answer
1k views

Car physics - velocity and latheral force

Im developing simple car racing game. To turn a car, I need to calculate slip angles for each tire and then use those angles to find lateral force (using Hans B. Pacejka magic formula). One thing I ...
3
votes
3answers
2k views

Opponent car logic in race games

I'm developing a race game in Andengine. I have created a car which player is controlling. But since this is a race game, there should be 3 or 4 car which snatch with the player's car. My question is: ...
3
votes
1answer
642 views

How can I apply steering behaviors to a car controlled with turning and acceleration?

I feel like I've got my head around steering behaviors, but I've having trouble applying them to a car. The steering behaviors return forces that one could apply to an object that can move in any ...
3
votes
3answers
2k views

Math to steer a car

I'm in the early stages of a city driving simulation project, and I'm having trouble with the math to determine how the AI should steer the cars. My car model is very simple, with nothing like ...
2
votes
2answers
1k views

How to model vehicle driving physics?

How to model the physics of a car in a racing game? In real life, vehicle movement is inherited from the wheels. But after reading a few articles on the subject (a lot of which are 10 years old), I ...
2
votes
1answer
886 views

Neural Net Controlled Car

I'm trying to make an AI car controlled by a neural net. I saw this two videos: Neural Network Demo and Q Learning and neural network in 2D car driving and I want to replicate that. I already have ...
2
votes
1answer
1k views

physics of 2D car racing game with heightmap

I want to develop a simple car racing game where the road is defined by a heightmap. It looks basically like this: The player can use throttle and brake to control the car. I'm wondering what the ...
2
votes
1answer
154 views

Math needed to create a very simple 2D side view car game

I'm trying to create a 2D side view car game (something like Hill Climb Racing, but much more simpler), but I'm confused on the math and physics. Most of the tutorials I found were about making a top-...
2
votes
1answer
108 views

Need instructions for my AI racing car game

I'm having a school project to create an 2D AI racing car game, but nobody know where is the destination, and the map is randomly generated. But to avoid the dead end, we must teach the car not to ...
1
vote
2answers
293 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
2answers
1k views

Unity3d 2017 trail renderer behaving weird

Please see the screenshot I attached, I am trying to make skid marks using trail renderer, but one side of trail is going upwards just after it renders, it was working fine Unity 5.4, but when I ...
1
vote
1answer
120 views

XNA 4.0 - Car game dashboard lights

I'm making a car game and doing the dashboard part. I'm trying to do the dashboard lights, i've did this changing the dashboard texture, overwriting the texture with the light image over it, example: ...
1
vote
1answer
768 views

Creating a vehicle using a physics engine [closed]

What is the theory behind creating a generic 3D vehicle in a physics engine? What I would like to know is what parts should I stick together to make the vehicle, how they parts should stick together, ...
1
vote
1answer
245 views

Car licensing if real cars appear in FMV cutscenes? [duplicate]

We are doing 2D game which will feature Full Motion Video for cutscenes in between the levels. Game is car oriented, although its not a racing game but it will feature some of the driving in it, and ...
1
vote
1answer
146 views

Progressively loading the racing arena in a 3D driving sim

I need advice and resources on a 3D car simulator. I want to progressively load the track for the player as I'm thinking of porting the game to mobile devices. This seems too difficult to me as I'm ...
1
vote
1answer
92 views

How to implement a slight skid in a car game

I have a top down car game, where I'm trying to allow a slight skid; I've tried the following code to calculate the X and Y, but there is no skid whatsoever: ...
1
vote
1answer
45 views

How to rotate an object to a specific transform?

I am working on a car racing game and there are some times when the car rotates and ends up on its roof. On those situations I want the car to respawn on the same location. What can I do to rotate it ...
1
vote
1answer
365 views

Simple 2D vehicle physics - maintaining vehicle length

I'm learning OpenGL and trying to make a simple simulation, which involves vehicles (drawn just as a rectangles) moving along predefined path. I've already read a few tutorials about designing a ...
1
vote
1answer
158 views

Prevent tires from tunneling in 2d sidescrolling car game

I am working on creating a 2d sidescoller car game (Think hill climb racing). The land is a line and generated at once. I have been setting up the physics for car tires and them hitting the lines and ...
1
vote
1answer
108 views

Turn the front wheels of a car according to the car's bezier path

I have a 3D car which follows a predefined 3D Bezier path. I want the car's front wheels' rotation to match the car's changing direction. I had the idea to match the wheel's orientation to the ...
1
vote
1answer
97 views

Reach concrete, numerical values for certain car values, in a car game

I am developing a rather complicated racing car management browser game, but I think this applies to any car game. I have 10 values. Power, acceleration, etc. that can be easily quantified by using ...
1
vote
0answers
27 views

Is It Okay To Use Real Designs In My 2D Game? [Cars and Weapons] [duplicate]

I am making a 2D mobile game that includes cars and weapons (like GTA let's say). I am using real car and weapons designs to make 2D images, however, I use made-up names for the both cars and the ...
1
vote
1answer
345 views

Unity collisions often have exaggerated physics, sending the player flying off the scene

I'm building a car driving game in Unity 2017.3.1f1. The car movement works fine over a flat surface and even over gently rolling terrain. It's a city environment, and there are lots of small lips ...
1
vote
0answers
346 views

Why are my wheels not moving at the same speed as my car?

I need help with some wheel rotation I set up for my game. My wheels are moving 3x faster than the acceleration speed of my car. Also, I can't work out why my car is moving so slow and the brakes not ...
1
vote
0answers
124 views

How can I make cars drive navigate an intersection without colliding?

I'm trying to create a 2D game with a traffic intersection: My car game-objects need to pass through the intersection without colliding with each other, and without stopping, if possible. How can I ...
1
vote
0answers
127 views

Lateral Slip of car

I have been following this Gaming Institute tutorial and tried to make that car physics system in Blender Game Engine. https://www.youtube.com/watch?v=EdjUS85yVuI&list=...
1
vote
1answer
524 views

2D Driving Game with Unity

I'm trying to make a 2D car driving game in Unity and I'm having problems with my code. I am able to move forward,backward,turn left/right using arrow key from my present code ...
0
votes
1answer
9k views

How to achieve highly accurate car physics such as Liveforspeed?

Liveforspeed is a racing simulator, there is amazing amount of realistic physics. for example, tires get warm, tire actually deforms when you turn corners. You need to play this game with a mouse at ...
0
votes
1answer
2k views

Car Game: Engine and Gearbox calculations?

I am making a racing game inside of Blender Game Engine. You can see the latest video here to get the impression of what type of game it is: https://www.youtube.com/watch?v=0i3m-xXtnhc What I want to ...
0
votes
1answer
114 views

How are real world car characteristics translated to in-game?

I am just entering the world of game development, starting with the racing genre of games. Let me clarify that this question is not about car modelling or external detailing; it is about the way a ...
0
votes
1answer
180 views

How to stop car from slipping backwards on a slope?

I am trying to simulate a car in Unity, the slope of the road is high so the car slips backwards. Is there any physics property which can stop this from happening? Thanks in advance.