|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Kinesis::apply_mouse_delta | ( | NavigationState & | state, |
| float | dx, | ||
| float | dy | ||
| ) |
Apply a mouse delta to yaw and pitch.
Pitch is clamped to [-89, +89] degrees to avoid gimbal lock at the poles.
| state | Navigation state (yaw, pitch mutated) |
| dx | Horizontal pixel delta (positive = right) |
| dy | Vertical pixel delta (positive = down) |
Definition at line 57 of file NavigationState.cpp.
References MayaFlux::Kinesis::NavigationState::mouse_sensitivity, MayaFlux::Kinesis::NavigationState::pitch, and MayaFlux::Kinesis::NavigationState::yaw.
Referenced by MayaFlux::bind_viewport_preset().
Here is the caller graph for this function: