set yOffset to 0.0f instead of uninitialized.