mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix build error: use raycastBoundingBoxes instead of raycast
This commit is contained in:
parent
b47bfdc644
commit
d49b69a3a8
1 changed files with 1 additions and 1 deletions
|
|
@ -622,7 +622,7 @@ void CameraController::update(float deltaTime) {
|
|||
// Raycast upward from player to find ceiling, limit camera distance
|
||||
glm::vec3 upRayOrigin = targetPos;
|
||||
glm::vec3 upRayDir(0.0f, 0.0f, 1.0f);
|
||||
float ceilingDist = wmoRenderer->raycast(upRayOrigin, upRayDir, 15.0f);
|
||||
float ceilingDist = wmoRenderer->raycastBoundingBoxes(upRayOrigin, upRayDir, 15.0f);
|
||||
if (ceilingDist < 15.0f) {
|
||||
// Found ceiling above — limit zoom to prevent camera from going through it
|
||||
// Camera is behind player by currentDistance, at an angle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue