Questions tagged [vehicle]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
55 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 ...
user avatar
1 vote
1 answer
74 views

Control how quickly 2D vehicle straightens out

I'm implementing vehicle movement in a 2D environment, where a vehicle consists of a front and a back "axle", both represented as 2D points. When the front axle moves, the back axle should ...
user avatar
  • 140
0 votes
1 answer
327 views

Understanding use of dot product in speed boost pad

I am trying to understand the dot product. I have found a website that gives you intuition about this topic and one of the examples involves a speed boost pad: Imagine the red vector is your speed (x ...
user avatar
0 votes
0 answers
189 views

Custom steering system in Unity for braking and sliding

I am developing a game where the player controls a vehicle. But instead of using a first person view, the camera is top-down and orthographic. I tried using Unity's wheel collider system. While that ...
user avatar
  • 57
1 vote
1 answer
56 views

How to detect a collision and collision impact?

I would like to calculate "impact" of collision if its the right word for it. My scenario is: I have player, who is driving his vehicle. He then hits the wall while still in vehicle. I want to know if ...
user avatar
  • 13
2 votes
0 answers
36 views

Simulating idle regulator for vehicles

I use PhysX vehicles for my vehicle simulation, however there is no idle regulator option available to use. I want to implement that to have correct overall engine behavior such as stalling and in the ...
user avatar
0 votes
1 answer
3k views

Car driving through walls with transform.Translate()

I need help with a script for a very simple car that uses transform.Translate: ...
user avatar
2 votes
1 answer
129 views

Are wheeled vehicles usually controlled by force applied to wheels or is movement simulated by a force applied to the vehicle?

I'm building a tank in my game and I was hoping to have moving wheels with rotation and shocks. I can get the wheels to bounce and rotate but they do not actually propel the car forward. Should I not ...
user avatar
-1 votes
1 answer
450 views

How to make a vehicle sense and obey traffic lights in Unity?

I am creating a traffic simulator and I have my vehicle and traffic light system working. My vehicle stops when the traffic light turns red, but it stops wherever it currently is instead of in front ...
user avatar
  • 329
0 votes
2 answers
204 views

How can I control a game 2d car mechanic from acceleration & speed to just 1 value?

So I have a car in a 2d game that runs on acceleration and speed, two values that have a max. The acceleration is small, under the value of 1 and it rises by an incrementation. The speed is large ...
user avatar
  • 168
3 votes
2 answers
1k views

How to calculate the stopping distance of a wheel collider?

I have an 'AI' bus in my game that needs to pull over occasionally at a bus stop. What I want to do is change the acceleration and brake force based on the stopping distance of the bus. I don't want ...
user avatar
  • 2,729
1 vote
1 answer
560 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 ...
user avatar
  • 113
0 votes
4 answers
6k views

Can I use models of real cars with logos removed to avoid copyright infringement?

My friends and I have recently started making a video game. We were going to make it an open world simulator, but can't figure out if using real cars with the real logos is copyright infringement. How ...
user avatar
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 ...
user avatar
2 votes
1 answer
880 views

How do engine sounds for vehicles work?

How does the engine sound for a car (or whatever has an engine) work? When you increase the throttle the engine sound changes but it's never quite the same. When programming such a system what is the ...
user avatar
  • 3,516
1 vote
0 answers
162 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=...
user avatar
11 votes
2 answers
2k views

How do I prevent raycast car wheels sliding sideways?

I've been writing a non-realistic car physics engine as a learning exercise, using this article as a reference. I have a car that correctly collides with a terrain and applies the correct suspension ...
user avatar
  • 578
0 votes
0 answers
503 views

How do you set up the physics for a tank?

My goal is to make some tank like vehicle since there is not a suitable one in unity5 store yet. First I tried wheel collider, could not get it to work. I tried to use raycasting and fixed joint, ...
user avatar
5 votes
2 answers
518 views

Isometric vehicle animation

I am working on a medieval isometric RPG in which the player can ride on horses and in horse drawn carriages. The player's movement is not restricted to the common eight directions; he may move in ...
user avatar
0 votes
4 answers
117 views

How do I figure out if a point is infront or behind my vehicle?

I need to figure out whether a point is infront or behind my vehicle. I have the vector of it's position, forward direction. So far I have tried finding the vector perpendicular to its forward ...
user avatar
1 vote
1 answer
1k views

Friction not working for Vehicle in BulletPhysics

I am creating a vehicle using bullet-physics engine (v 2.82). I created a ground ( btBoxShape ), a box and a vehicle (following the demo). But friction between ground and vehicle wheels seems not ...
user avatar
1 vote
1 answer
6k views

Vehicle: Boat accelerating and turning in Unity

I'm trying to make a player-controllable boat in Unity and I'm running into problems with my code. 1) I want to make the boat to accelerate and decelerate steadily instead of simply moving the speed ...
user avatar
-1 votes
1 answer
9k views

How much does it cost to license vehicles for a racing game? [closed]

I've looked and looked, and even contacted some companies but I never got anywhere. Does anyone know? I just need to see if I can do it financially.
user avatar
5 votes
1 answer
405 views

Implementing Vehicles in your game

In the game i am creating as an hobby (learning is the primal goal of it all) i plan to implement a space ship that the player can enter and use to explore it. I tried to search the internet for the ...
user avatar
  • 581
1 vote
1 answer
441 views

Physx gravity not working as expected

We have been facing a strange issue with physx vehicles. The game behaves correctly in almost every situation: jumps, impacts, etc. Gravity is applied correctly downward. But when the vehicle is put ...
user avatar
  • 31
3 votes
2 answers
765 views

What's the best way to move cars along roads

I am implementing car movement game (sort-of like Locomotion). So 60 times a second I have to advance the movement of each car. The problem is I have to look ahead to see if there is a slower car, ...
user avatar
3 votes
1 answer
421 views

Simulate 'Shock absorbtion' with tire rubber in PhysX (2.8.x)

This is a kinda tricky question and I fear there is no easy enough solution, but I figured I'd hit SE up before giving up on it and just doing what I can. A machine I am working on has no suspension ...
user avatar
  • 1,229
4 votes
1 answer
553 views

Dirt compression from vehicle tires

So I kinda have this working but its not correct because it just averages, so I wanted to know if anyone here has any ideas. I'm trying to simulate loose dirt compression under the tires of a vehicle ...
user avatar
  • 1,229
1 vote
1 answer
6k views

Unity: Spin wheels to move vehicle

I am just getting started with Unity and I'd like to ask a question. If I have a "Vehicle" object that has two children: "FrontWheel" and "BackWheel" (both 'wheels' are cylinders), how should I set ...
user avatar
  • 3,167