MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / SetPitchAngle

Method SetPitchAngle

ZEngine/src/FirstPersonShooterCamera.cpp:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 }
15
16 void FirstPersonShooterCamera::SetPitchAngle(float degree) {
17 float rad = Maths::radians(degree);
18 m_pitch_angle = Maths::clamp(rad, -Maths::pi<float>() + 0.1f, Maths::pi<float>() - 0.1f);
19 }
20
21 void FirstPersonShooterCamera::SetTarget(const Maths::Vector3& target) {
22 Camera::SetTarget(target);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected