I have been trying to spin my imported wheel from blender 360* but when I do it, it doesn't rotate on the center (on one spot). I'm using C#.
I have tried this:
transform.Rotate(Vector3.forward, 5f - 90);
But this doesn't spin on one spot.
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
That is probably because your model's origin isn't in its center. You need to either
RotateAroundwhich you can then for an example pass in
collider.bounds.centerto rotate around your collider's center position.