calculateBoneRotation
Calculates the rotation needed to point from one position to another. Returns Euler angles (in radians) for the rotation.
Return
Vector3f containing rotation in radians (pitch, yaw, roll)
Parameters
from
Starting position
to
Target position
restDir
The rest/default direction of the bone (usually forward, e.g., 0,0,1)