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