HI! I haven't yet gotten into trigonometry in math and need some help. In my mod I have separate entities "connected" to one. To update their positions I devised some basic trig formulas to determine their absolute position based on the location of the "center" entity, the x, y, and z offset from it at their creation, and the absolute rotation of the "center" entity. Unfortunately entities use yaw, pitch, and roll. If anybody could let me know if they will work anyway, how to adapt them, or how to determine absolute rotation from yaw, pitch, and roll I would be grateful.
Current equations:
newx = controllerx + xoffset(sin(Yrotation) + sin(Zrotation))
newy = controllery + yoffset(sin(Xrotation) + sin(Zrotation))
newz = controllerz + zoffset(sin(Xrotation) + sin(Yrotation))
rotations are around the letter's axis(e.g. Yrotation would be yaw)