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

Method SetTarget

ZEngine/src/FirstPersonShooterCamera.cpp:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 void FirstPersonShooterCamera::SetTarget(const Maths::Vector3& target) {
22 Camera::SetTarget(target);
23 m_forward = Maths::normalize(m_position - m_target);
24 m_radius = Maths::length(m_forward);
25 }
26
27 void FirstPersonShooterCamera::SetPosition(const Maths::Vector3& position) {
28 Camera::SetPosition(position);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected