MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetYRotation

Method SetYRotation

Source/Graphics/camera.cpp:94–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void Camera::SetYRotation(const float new_val) {
95 old_y_rotation = y_rotation;
96 y_rotation = new_val;
97
98 while (old_y_rotation >= y_rotation + 180) {
99 old_y_rotation -= 360;
100 }
101 while (old_y_rotation <= y_rotation - 180) {
102 old_y_rotation += 360;
103 }
104}
105
106void Camera::SetXRotation(const float new_val) {
107 old_x_rotation = x_rotation;

Callers 4

ExecuteMethod · 0.80
DrawCubeMapMethod · 0.80
DrawImGuiCameraPreviewFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected