Hey, I’m trying to achieve on my motor6d, to change to the desiredangle using the mouse, for example, if i move my mouse to the left, the DesiredAngle will move to the left.
By using the “normalizedPosition”, we can use the normalized x coordinate of the mouse to determine if it is on the left, right, or center of the screen.
Then, for example, you could linearly map mouse’s x-coordinate to steering angle.
If you want the wheel to actually follow where your mouse is pointing in 3d-space, it gets a little more complicated. But for someone starting out and looking for something that will just work, this is acceptable.