- Home /
Question by
blackshakr2829 · Oct 03, 2021 at 06:57 PM ·
rotationwheelcolliderwheel
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 the rotation at 180 degrees on the x axis.alt text
before.png
(143.3 kB)
after.png
(113.6 kB)
Comment
Answer by SamyBoyJim · Oct 04, 2021 at 03:09 AM
From what I can see, I think the problem is the center of rotation. If you want to work properly I think you have to center the mesh position of the wheel so it rotates around the center of the rim, this can be done with a parent gameobject and modifying the transform of that. Just make sure that the position of where you are rotating around is the same position as the center of the wheel.
Your answer
![](https://koobas.hobune.stream/wayback/20220613043753im_/https://answers.unity.com/themes/thub/images/avi.jpg)