Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [car]

The tag has no usage guidance.

0
votes
0answers
16 views

Simple Automation of Car Path Finding Between 2 Points [duplicate]

I would think that it would be simple to have a car drive from A to B, but apparently I haven't been able to figure it out. My goal is to have a car begin at a certain position and angle, calculate ...
0
votes
1answer
78 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
82 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.
0
votes
1answer
180 views

simple 2d car AI unity

I have a top down Car Game. how can I implement AI for the Cars? how the car follow the way points? I want AI cars also rotate itself along the path. I tried this solution ...
0
votes
1answer
46 views

Unity: Car Rollover Protection

I have a standart Unity car with Unity Car physics. What would be the best approach to protect my car from a rollover? I dont want to mess up and try and error 10 different approaches, so maybe here ...
0
votes
0answers
53 views

How to include car spinout in vehicle physics?

I would like to know how I can go about implementing car spinout in games. I heard that spinout is caused by loss of traction in the rear wheels of the car but I don't know how it relates to velocity ...
1
vote
1answer
41 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 ...
6
votes
1answer
2k 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 ...
1
vote
2answers
99 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
votes
0answers
11 views

How to add tilt in unity

How can i get tilt like effect . Like when player turn in left it also rotate on Y axis a bit on and same for right turn
0
votes
0answers
116 views

Variable Car Simulation using Waypoints

I have a single lane road and I want cars to drive along it. I want variables such as car speed and gap lengths between cars to be changeable. I have already implemented this simply using a Waypoint ...
1
vote
2answers
719 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
140 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 ...
9
votes
4answers
732 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 ...
3
votes
1answer
453 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 ...
1
vote
0answers
233 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
1answer
248 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 ...
4
votes
1answer
823 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....
1
vote
1answer
383 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 ...
1
vote
1answer
143 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 ...
0
votes
1answer
119 views

Creating terrain

I am working on creating a 2D side-scrolling car game. My problem is generating the terrain. When creating the terrain, I need to have it random and recorded, so I can create collisions at a later ...
4
votes
2answers
290 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 ...
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 ...
1
vote
0answers
112 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 ...
4
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# ...
1
vote
0answers
109 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=...
4
votes
1answer
181 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 ...
2
votes
1answer
638 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 ...
0
votes
1answer
830 views

How can I adjust steer angle based on speed in Unity?

I'm following this (https://www.youtube.com/watch?v=kAEpLX3rfms) video on how to make a car in Unity. But my car doesn't lower the steering angle based on the speed of the video. The idea was that you ...
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 ...
2
votes
1answer
770 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 ...
1
vote
1answer
101 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 ...
0
votes
1answer
81 views

How to move a car model on a plane?

I want to create a 3 dimensional car game. But i have a problem in moving a car in other directions and accelerating. I have a car model and a road model placed appropriately. To move car forward, I ...
23
votes
7answers
9k 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": ...
3
votes
2answers
1k 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 ...
1
vote
1answer
116 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: ...
6
votes
1answer
979 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. ...
1
vote
1answer
711 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
90 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 ...
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

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 ...
1
vote
1answer
240 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
votes
1answer
3k views

“Car” movement in 2D dimension [closed]

I am searching for a simple tutorial how to add arcade car physics for my game. Exactly same user units behaviour i found in next games: Tank Hero: Laser Wars Death Worm: Video: http://www....
0
votes
1answer
3k views

How to achieve realistic engine sound? [duplicate]

I am aiming to achieve a believable engine sound for a car. The vehicles are simplified versions of their real-world counterparts, with simpler steering behaviors and acceleration, etc. This seems ...
3
votes
2answers
1k 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 ...
13
votes
3answers
39k 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 ...
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 ...
4
votes
1answer
907 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 <...
9
votes
1answer
727 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. ...
1
vote
1answer
140 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 ...