bevy_tnua::util

Function rotation_arc_around_axis

Source
pub fn rotation_arc_around_axis(
    around_axis: Dir3,
    current_forward: Vector3,
    desired_forward: Vector3,
) -> Option<Float>
Expand description

Calculate the rotation around around_axis required to rotate the character from current_forward to desired_forward.