Questions tagged [car]
The car tag has no usage guidance.
72
questions
0
votes
0
answers
25
views
Suspension vector direction of a raycast vehicle
I'm working on a raycast-based vehicle in a 3D world using a physics engine. It's basically a chassis object that contains a transform (translation, rotation, scale), a dynamic rigid body (with mass, ...
0
votes
1
answer
2k
views
Making vehicle using WheelColliders faster
I have a driving game and use wheel colliders to control cars, but whatever I change with the WheelCollider components it doesn't get faster and is way too slow.
The code of the controller:
...
0
votes
0
answers
258
views
Simple racing car steering?
I want to make a simple 2d top-down racing game, something like Mario Kart in 2d, but I am really struggling with the car steering. The only resources I find are complicated and involve a lot of ...
0
votes
0
answers
419
views
What is causing my wheel collider's raycast to fail?
I'm making custom car suspension(Custom wheelcollider etc), now I encountered a problem where if car gets dropped from a certain height, raycast will fail to detect collision and wheels intersect with ...
0
votes
0
answers
211
views
How do I correct the turning effects on my car in order for it to turn properly?
In my game, I'm currently working on a Physics-based car driving game in Unity from scratch. My problem is that whenever I press the input controls used for turning, instead of turning, my car does ...
0
votes
1
answer
166
views
Problem with calculating velocity for a car with multiple gear ratios
I hope this is the right place for this but I have a problem with calculating velocity for my car game. The higher the gear, and therefore lower the gear ratio, the lower the top speed.
Given that
...
2
votes
1
answer
170
views
How can one achieve the mechanic of hitting cars or bumping into them like in Burnout games' takedown modes?
In Burnout games there's this game mode where the player can trash other cars by bumping into them or bumping them into walls. As you can see in this video link This is known as a takedown.
I'm ...
0
votes
0
answers
64
views
Simple Car Animation Acceleration Too Slow
I am trying to make a very simple car animation where using the arrow keys, I can make a car move around. I am using wheel colliders and some code that goes like this:
...
0
votes
1
answer
1k
views
Wheel rotation for a raycast car in Unity?
I've been learning unity and 3d modelling over the last couple of months and I'm trying to set up a basic car game using raycasts, as the wheel colliders in unity aren't great.
Right now I'm trying to ...
0
votes
0
answers
512
views
Car simulation, motor torque and brake torque combine problem
I am creating a custom wheel collider in Unity. Every thing is fine now (suspension, collision, friction) except one problem that i cant get my head over for last 3 weeks. So now i have a car (one ...
0
votes
1
answer
177
views
How to make collisions occur between objects using the same script?
Well what I’m trying to do is have cars travelling on the road. The cars have a trigger at the front and a hitbox at the back of the cars. What I want to happen is when the trigger hits the hitbox it ...
0
votes
0
answers
405
views
Implementing counter-steering for a drifting car in 2D
I could make a sliding car. but i want the counter steer functionality. My current model of the car has 4 wheels, all of them have a script handling the slip. am currently multiplying the side ways ...
1
vote
0
answers
40
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 ...
0
votes
2
answers
4k
views
How to make a car follow a path?
I have a 2D game and my goal is to make a car follow a path (the road in the picture) and rotate in the same time. I tried a plugin in the assets store but it didn't work well for me and i had ...
1
vote
1
answer
203
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:
...
2
votes
1
answer
782
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
1
answer
254
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 ...
0
votes
0
answers
24
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
1
answer
248
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
1
answer
865
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
1
answer
2k
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
2
answers
918
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 ...
1
vote
1
answer
91
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
1
answer
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 ...
1
vote
2
answers
1k
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.
0
votes
0
answers
250
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
2
answers
2k
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
1
answer
1k
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 ...
10
votes
4
answers
2k
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
2
answers
2k
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
0
answers
539
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
1
answer
701
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 ...
5
votes
1
answer
3k
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
1
answer
712
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
1
answer
207
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
1
answer
140
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 ...
3
votes
2
answers
568
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
2
answers
2k
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
0
answers
181
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 ...
3
votes
3
answers
4k
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
0
answers
166
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
1
answer
346
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
1
answer
2k
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
1
answer
2k
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
1
answer
3k
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
1
answer
929
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
1
answer
146
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
1
answer
92
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
7
answers
16k
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
2
answers
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 ...