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

Method DrawDebugCube

src/Renderer/Renderer.cpp:479–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479void Renderer::DrawDebugCube(glm::vec3 position) {
480 float lightSize = 0.5;
481 glm::vec3 position_min = glm::vec3(position.x - lightSize, position.y - lightSize, position.z - lightSize);
482 glm::vec3 position_max = glm::vec3(position.x + lightSize, position.y + lightSize, position.z + lightSize);
483 btVector3 colour = btVector3(0, 0, 0);
484 physicsEngine.mydebugdrawer.drawBox(Utils::glmToBullet(position_min), Utils::glmToBullet(position_max), colour);
485}
486
487std::vector<int> Renderer::CullTrackBlocks(glm::vec3 oldWorldPosition, glm::vec3 worldPosition, int blockDrawDistance,
488 bool useNeighbourData) {

Callers

nothing calls this directly

Calls 1

glmToBulletFunction · 0.85

Tested by

no test coverage detected