onRotationChange method

void onRotationChange()

Implementation

void onRotationChange() {
  quaternion.setFromEuler(rotation, false);
}