I’m trying something a little different. Instead of moving an obsticale along an axis, I’m trying to rotate one, but I’m getting stuck in the code.
It’s not as simple as changing ‘transform.position’ to ‘transform.rotation’.
Here’s what I’m trying to achieve:
to
and back with the slider.
It looks like it has something to do with with Quaternions, but I can’t wrap my head around it.