Weird wheel rotation
Hello, I'm implementing the physics for my racing game, but when I make the wheel rotate when the car is accelerating the rotation appears weird, I attached 2 pictures showing the start rotation and...
View Articlewhat's the problem with tiers ?
_________________________ that's my Code: ___________________________ using System.Collections; using System.Collections.Generic; using UnityEngine; public class CarDrive : MonoBehaviour { public float...
View ArticleBest Settings/Config Wheelcollider Tank
Hello everyone! Question: What is the best wheelcollider config for a tank? I'm working on a tank game and need a little help. Thanks!
View ArticleI am making a racing game and I cant figure out how to calculate the angular...
How would you calculate angularVel with forwardFriction, brakeforce, motortorque and mass. forwardFriction = frictionCurve.Evaluate(Mathf.Abs(slip)) * System.Math.Sign(slip)
View ArticleDirectional wheel collider suspension?
I am making a mtb game and I am currently trying to get the suspension worked out. My first thought was to make my own suspension, but since I am pretty new to game development I have no idea how to...
View ArticleWhy my car is jumping like that
Video : https://streamable.com/0rwq5d I have some screenshots ,you can look at it. The car is jumping when is going faster. I searched a lot and didn't find any solution.
View ArticleWheel Colliders are nonfunctional and im unable to find any cause.
a simple car controller from a tutorial i found: https://www.youtube.com/watch?v=Z4HA8zJhGEk public class CarController : MonoBehaviour { private const string H = "Horizontal"; private const string V =...
View Articleunity wheel collider settings
Hello everybody, So I am a student working on my second concept game. I have a car downloaded from assets store, blue BMW with wheels and brakes as separated objects on the prefab and I want to move...
View ArticleHow to steer vehicle with mortorTorque or different wheel speed in each wheel...
So I'm making a tank controller with wheel collider. Here's the code I use. (Ignore those //, I just don't want to delete it) using System.Collections; using System.Collections.Generic; using...
View ArticleUnity Wheelcollider stops working after reaching 0 velocity
Good day everybody, I am currently working on a 3d racing game utilizing the wheel colliders to move my vehicles. But I seem to have hit a wall where the wheels wont work after I stopped my vehicle....
View Articlewheel colliders and wheel mesh position change?
wheel mesh position change in play mode ,if am not use worldpos or not give the pos script, wheel colliders and wheel position same position and running the wheel colliders but not rotate the wheel...
View Articlewheel collider steering in new input management, wheel collider steering in...
I'm trying to use the new 3D drive input system for my car's movement, more specifically the steering angle. when i use Input.GetAxis("Horizontal") my wheel goes smoothly from 0 to 30 and as i press...
View ArticleObject colliding with collider junction instead of sliding over it
Hi! I'm trying to make a train follow a rail, and I decided to do it with physics. My train has each whell as a separate object, and each of these has a capsule collider in the side of the wheel to...
View ArticleDoes the wheel friction curve works for negative slip(WheelCollider)?
Hi, I know that the wheel friction curves of the WheelCollider take into account slip values that goes from 0 to 1. But according to the WheelHit, the slip can goes from -1 to 1 (depending if the...
View ArticleHow would I simulate a car flywheel / engine / transmission?
So, I only need help with like half of this because I found an old post explaining most of it. I made an engine using the math from [this][1] really old post, and this is the code I have: float...
View ArticleWheel Collider tires veer left without the required input.
I am writing a simple wheel-collider based car controller for my game. However, When I tested it, the car started veering towards the left even when I didn't give it any directional input. On further...
View ArticleRealistic car controller V3 script issue
When I create a car model, set up the realistic car controller V3 script, add the ui, change the torque, brake force and else and finally when I start the game, car settings and UI return to default...
View ArticleHow do I limit the rotation of the z axis using Wheel Joint 2D?
I'm writing a 2d game for android. I have a character that rotates from 180 to - 180 degrees. But I need to limit transform rotation by z to 50 and -50. I know it's possible via Math.Clamp(), but I...
View ArticleWheelcolliders not colliding with anything
I just started a new project and i wanted to make a car, but my car just sinks down when i start the game and it sinks til the plane collides with the cars main boxcollider, my wheel colliders wont...
View ArticleUnity Wheel Collider Independent Steering Behaviour possible?
Hey Guys, this Forum helped me a lot, but this time i couldnt find any suitable answer for my question.. I wanted to make a "Car" with the Unity Colliders but i am unsure if thats even possible. A...
View ArticleWheel colliders damper is too strong when car is stationary
Hi all, I am working on a prototype where I would like to move a car by pushing it on the sides with an AddForce function. However, when the car is at a complete stop, I can't move it as I want, the...
View ArticleHow to change the variavle of sidewaysFriction with C# code?
Can I take this in this way? : WheelCollider.sidewaysFriction.extremumSlip = 3;
View ArticlePhyscial Units of Wheel Collider Parameters
Hi everyone, we are using Unity wheel colliders in a mobile robot simulation for our research, and I am performing a study that compares performance of simulated robots with performance of real robots...
View Articleerror CS0246: The type or namespace name 'WheelColliders' could not be found...
How can I solve this error?
View ArticleHow to Brake faster/less time to stop, using wheelcollider.
with my car controller script my braking works but it take forever to stop from normal driving speeds, and increasing brake torque doesnt do anything. I just want the braking to happen quicker
View ArticleSmall wheel collider passing through collider meshes
I have small wheel colliders (radius of 0.03 - I am simulating skateboarding wheels). However, sometimes the wheel colliders go through ramps (non-convex mesh colliders). I know that small colliders at...
View ArticleConnect two gameobjects using a configurablejoint
I am trying to make a suspension and I am using a script that modifies the values of the wheel colliders. I want to use configurablejoints to join my wheelcolliders with the meshes of my wheels, how...
View ArticleConnect two gameobjects using a configurablejoint
I am trying to make a suspension and I am using a script that modifies the values of the wheel colliders. I want to use configurablejoints to join my wheelcolliders with the meshes of my wheels, how...
View ArticleHow I can increase the car power without increase speed(WheelJoint2D)?
I'm using **WheelJoint2D** and my car can't climb small hill. But my car should climb big hills (like in HillClimbRacing). So, How I can increase the car power **without increasing speed**? Advance...
View ArticleHow to reduce torque of wheelCollider when a collision takes place ?
I've done the following: ![alt text][1] [1]: /storage/temp/206612-code.png RoueArrièreDroite, RoueArrièreGauche, RoueAvantDroite and RoueAvantGauche are all wheel colliders. This code uses the gas...
View Article