MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / updateFrustrum

Method updateFrustrum

src/Physics/Physics.cpp:152–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void Physics::updateFrustrum(glm::mat4 viewMatrix) {
153 if (m_ghostObject) m_ghostObject->setWorldTransform(Utils::glmToBullet(viewMatrix).inverse());
154 else buildGhostObject();
155 checkForFrustumIntersect();
156}
157
158void Physics::checkForFrustumIntersect() {
159 m_objectsInFrustum.resize(0);

Callers 1

RenderMethod · 0.80

Calls 1

glmToBulletFunction · 0.85

Tested by

no test coverage detected