Hello, i was curious, is it possible to Add/Subtract/Multiply from rotation values. Something similar you would do with position values. And if so, how?
Here’s my example. I’m trying to make prop face same direction as the player but i would like to limit rotation only by X and Y, so it won’t face up and down. My idea was to multiply Z axis by zero so it wouldn’t move, but it didn’t work. Is there other solution?
The currently exposed functionality to manipulate rotations can be found here SpatialMath module.
In your exact example if you don’t want the prop to face up or down you just want to remove the pitch from the player’s view rotation. This can be achieved with code like this: