Function gvr_sys::gvr_apply_neck_model
[−]
[src]
pub unsafe extern "C" fn gvr_apply_neck_model(
gvr: *const gvr_context,
head_space_from_start_space_rotation: gvr_mat4f,
factor: f32
) -> gvr_mat4f
Applies a simple neck model translation based on the rotation of the provided head pose.
Note: Neck model application may not be appropriate for all tracking scenarios, e.g., when tracking is non-biological.
@param gvr Pointer to the context instance from which the pose was obtained. @param head_space_from_start_space_rotation The head rotation as returned by gvr_get_head_space_from_start_space_rotation(). @param factor A scaling factor for the neck model offset, clamped from 0 to 1. This should be 1 for most scenarios, while 0 will effectively disable neck model application. This value can be animated to smoothly interpolate between alternative (client-defined) neck models. @return The new head pose with the neck model applied.