mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Update billboard and planar overlays to use new findRayRectangleIntersection signature
This commit is contained in:
parent
14ec9b431e
commit
c499352ad8
2 changed files with 2 additions and 2 deletions
|
@ -209,7 +209,7 @@ bool BillboardOverlay::findRayIntersection(const glm::vec3& origin, const glm::v
|
|||
float maxSize = glm::max(width, height);
|
||||
glm::vec2 dimensions = _scale * glm::vec2(width / maxSize, height / maxSize);
|
||||
|
||||
return findRayRectangleIntersection(origin, direction, rotation, _position, dimensions);
|
||||
return findRayRectangleIntersection(origin, direction, rotation, _position, dimensions, distance);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
@ -95,5 +95,5 @@ QScriptValue Planar3DOverlay::getProperty(const QString& property) {
|
|||
|
||||
bool Planar3DOverlay::findRayIntersection(const glm::vec3& origin, const glm::vec3& direction,
|
||||
float& distance, BoxFace& face) {
|
||||
return findRayRectangleIntersection(origin, direction, _rotation, _position, _dimensions);
|
||||
return findRayRectangleIntersection(origin, direction, _rotation, _position, _dimensions, distance);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue