Hello all,
I have been creating a dungeon generator as of late and am using a behavioral tree to spawn in connecters to rooms. Inside the behavioral tree i move around a player character and spawn tubes based off blackboard values and its location/rotation. The tubes have arrow components that are referenced(only one exit and entry) to find world location and rotation to move the player character to.
The problem I’m having is that get world rotation is returning values that aren’t correct. The values are not in 90 degree intervals when they are in the world. I have done a slight workaround dividing but 90 rounding that then multiplying by 90 by it occasionally rotates the wrong way. The images are of the function that calculated rotation and the rotation “get world rotation” is returning


The incorrect rotation here in question is around the mid-bottom of the output log. It says Rot of Exit: P=-90 Y=-144 R=-35. It is the selected corner in the world viewport, with expected value P = 0 Y = -90 R = 180