MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / SetXRotation

Method SetXRotation

SampleFramework11/v1.02/Graphics/Camera.cpp:233–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233void FirstPersonCamera::SetXRotation(float xRotation)
234{
235 xRot = Clamp(xRotation, -XM_PIDIV2, XM_PIDIV2);
236 SetOrientation(XMQuaternionRotationRollPitchYaw(xRot, yRot, 0));
237}
238
239void FirstPersonCamera::SetYRotation(float yRotation)
240{

Callers 1

UpdateMethod · 0.80

Calls 1

ClampFunction · 0.85

Tested by

no test coverage detected