MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / update

Method update

Source/Camera.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31void Camera::update()
32{
33 if(m_P_entity)
34 {
35 position = m_P_entity->position;
36 rotation = m_P_entity->rotation;
37 }
38
39 m_viewMatrix = Maths::createViewMatrix(*this);
40
41 m_projectionViewMatrix = m_projectionMatrix * m_viewMatrix;
42 m_frustum.update(m_projectionViewMatrix);
43}
44
45void Camera::hookEntity(const Entity& entity)
46{

Callers

nothing calls this directly

Calls 1

createViewMatrixFunction · 0.85

Tested by

no test coverage detected