Questions tagged [wheelcollider]

19 questions
3
votes
1 answer

Unity3D Wheel Collider - Friction Curve? Alternatives?

so I've been trying to see if I can make use of Wheel Colliders for the past several months now. As much as I've managed to figure out more and more things about how to set them up properly, there's some things I've been noticing that seem…
Kieran Ojakangas
  • 495
  • 4
  • 18
1
vote
1 answer

why is sideways tire slip separated from forward slip on Unity wheel collider?

I finally understood why my car in unity can't drift/powerslide like cars do in other racing games. Feel free to skip the boring part and only read the question down below if you know this issue. problem: Not realistic car grip/drift happens because…
Tomino
  • 33
  • 6
1
vote
0 answers

Unity3D Wheel Collider PID Controller?

I'm trying to make a wheel collider PID controller based on the following tutorial: https://www.habrador.com/tutorials/pid-controller/1-car-follow-path/ I made a revision to the FixedUpdate method to modify the steer direction based on the angle…
1
vote
0 answers

How to solve the problem of the wheelCollider.rpm running while being motionless? I am with 2018.2.18f1

I am on a project for the job of creating the real-life truck behavior for simulators and I discovered a problem inside the wheelCollider.rpm. I explain, I discovered that the wheelCollider has a rotation of 0.3885 per minute and this is explained…
1
vote
1 answer

How to implement trolley-like physics behaviour in Unity

I am stuck with two things while trying to simulate the physics setup for a trolley-like object (push powered vehicle with free rotating wheels on the front and fixed wheels on the back). I have the RigidBody with its mesh and four WheelColliders,…
momo
  • 3,404
  • 6
  • 37
  • 66
0
votes
0 answers

Unity - How to tilt wheels?

The question is - how to tilt the wheels like on the picture? In game mode, collider rotation values ​​return to zero. Apparently the wheel collider does not support rotation. Therefore, the wheel mesh needs to be tilted. Can someone tell me how to…
Slamph One
  • 31
  • 2
0
votes
0 answers

Setting up increased grip in WheelCollider in Unity

I'm making a racing mini game. I'm trying to set up the WheelCollider so that the car has a good grip on the road. By default, the car slides on the road, so I changed the ExtremumSlip and ExtremumValue in SideWays Friction to 0.6 and 3…
Hatemsla
  • 45
  • 5
0
votes
0 answers

Clamping the rotation of the main object when using the Wheel Collider

I'm mehmet. I'm new to Unity and trying to learn. I'm building a car controller for the Hyper Casual game using Wheel Collider. I want to clamp the rotation of the car in the y-axis. How can I do that? private void Start() { rb =…
0
votes
1 answer

Car with wheel colliders jumps when collides with another box collider

So, I make a car using wheel colliders. Also I have a simple scene with a box collider. The problem is that when wheel colliders touch box collider, the car takes off in the sky and starts turning. What I'm doing wrong?This is how wheel colliders…
NikoES
  • 11
  • 3
0
votes
1 answer

Wheel colliders rpm jumps naN

im making a andriod drifting game in unity (in c#), EVERYTINHG works 100% in the editor, but when i build it and test it on my andiod phone, the car reveres when the car is spawned, so i did some debugging and found that all 4 wheel coliders's rpm…
0
votes
1 answer

Unity car acceleration problem after brake

I have a car physics class which is wheel colliders attached. I've set the "maxMotorTorque" value to 150, "maxSteeringAngle" to 30 and "brake" to 150 on the inspector. This is a simple code I copied from the unity wheel colliders tutorial and I…
0
votes
1 answer

How to access wheel collider in a child object in Unity

In Unity, my player gameObject has 4 wheels and all of them contain wheel colliders. I want to get the rpm of these. I write this code, but at line 33 it is throwing index/argument out of bound exception, which means the index it's trying to access…
0
votes
1 answer

Rotate a wheel with camber angle

I'm new to 3D design, so this might be a silly question. I have trouble simulating wheel camber using rotation with Quaternion. What I understand is that the rotation of the WheelCollider occurs along the X axis, whereas in my case the "visual…
blow
  • 12,811
  • 24
  • 75
  • 112
0
votes
1 answer

Unity WheelCollider Moving in Wrong Direction When Centering

When I try to adjust the center of the WheelCollider along the Y-axis it doesn't go straight up along the axis. Rather, it goes up and to the right. If anyone knows why this is happening I would really appreciate it. Thanks in advance! Wheel…
0
votes
1 answer

My wheels are spawning in the middle of my car

I am currently struggling with wheel colliders in Unity on my car. I have tried different code and cars, even made a simple car in Unity. But nothing works as I would have it. As seen on the pictures, my wheels keep searching into the center on my…
1
2