# Help With Rotator Math

Hello everyone! I am attempting to create a simple system to offset a camera’s relative location. To do this, I am using the player’s control rotation. My blueprints work great, except for one issue. When the axis resets (for example, when pitch goes from 360 to 0), my calculations are completely messed up. I can include blueprints if anyone needs to see an example of what I am talking about.

What is the correct way for me to do math like this on rotators?

You are going to have to show screenshots of your code in question for reference, to see exactly what you are trying to do. In the meantime, perhaps this may be of help? Blueprints Get Rotation of Object - Programming & Scripting - Unreal Engine Forums

Actually rotation goes from -180 to 180, not from 0 to 360; and yes, sometimes it causes math troubles, depending on what exaclty you want to calculate. It would be helpful if you posted some BP screenshots and explained what exactly you want to do.

Oh, I was looking for this answer too.

A rotor is an object in the geometric algebra of a vector space that represents a rotation about the origin