I have my gameobject rotating it's y axis which is based on static cubes that are placed around the map. It rotates fine, except when I add a rigidbody. I have to use a few constraints on the rigidbody, but now my rotation doesn't work right.
I need a rigidbody as I want to add forces and use gravity. So I'm thinking I need to change my rotation logic, but all I have is a raycast pointing to the cubes and returning it's y axis, then setting that y rotation to my gameobject.
Is there a way around this? Or a better way. I really need to use a rigidbody.
The best way to descibe it, is imagine a car moving along a path (which isn't set) and as it moves, its rotating its Y, so it faces forward.