If you see someone who needs to know about code tags, please link them to this post:
Please use code tags when posting code.
You can "tag" your code by typing [984347--130826--Screenshot 2015-03-16 10.33.58.png] around your code.
There is no overt "Code" tag button that automatically tags a selection as code.
That being said, however, we can Insert code directly into the post using the "Insert Code" button:
[image]
This will bring up an "Insert" window were we can paste our code and c…
Your title is about movetowards and your question is about rotatetowards.
Tbh, for both the easiest method would be setting the unwanted component to 0.
Vector3 rotate = Vector3.RotateTowards(rb.velocity, input, maxDegrees * Mathf.Deg2Rad, Mathf.Infinity);
rotate.y = 0;