r/UnityHelp • u/ferogriff • Jan 30 '24
PROGRAMMING WheelCollider and wheels not behaving correctly
2
Upvotes
1
u/Infinito_Projects Jan 31 '24
The above is how wheels should work in real life! lol... I love when this weird things happen making stuff.
Car frame as parent, never change the transform.position of the wheels just move the CarFrame, then rotate the 4 wheels, but tbh without seeing the code i can't really say for sure.
1
u/ferogriff Feb 01 '24
Ah yea I see, but I’m not sure it would fix the rotation problem. I’ll try it
I basically used the same code as in the tutorial (see my other message)
1
u/ferogriff Jan 30 '24
Hi everyone, I am picking up Unity after having not used it for a while and I was trying to follow this tutorial available in the documentation: https://docs.unity3d.com/Manual/WheelColliderTutorial.html#add
The wheel collider seems to work however the visible wheels are not rotating around the correct axis and I do not know how to fix this issue.
Thank you very much for the help.