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

Method SetTarget

ZEngine/src/OrbitCamera.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 void OrbitCamera::SetTarget(const Maths::Vector3& target) {
28 PerspectiveCamera::SetTarget(target);
29 const Maths::Vector3 direction = m_position - m_target;
30 m_radius = Maths::length(direction);
31 }
32
33 void OrbitCamera::SetPosition(const Maths::vec3& position) {
34 Camera::SetPosition(position);

Callers 1

InitializeMethod · 0.45

Calls

no outgoing calls

Tested by 1

InitializeMethod · 0.36