mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:48:09 +02:00
switched getAABox() interface
This commit is contained in:
parent
96561e97d8
commit
89226b18a5
1 changed files with 1 additions and 2 deletions
|
@ -558,8 +558,7 @@ public:
|
||||||
|
|
||||||
bool findRayOperation(VoxelNode* node, void* extraData) {
|
bool findRayOperation(VoxelNode* node, void* extraData) {
|
||||||
RayArgs* args = static_cast<RayArgs*>(extraData);
|
RayArgs* args = static_cast<RayArgs*>(extraData);
|
||||||
AABox box;
|
AABox box = node->getAABox();
|
||||||
node->getAABox(box);
|
|
||||||
float distance;
|
float distance;
|
||||||
if (!box.findRayIntersection(args->origin, args->direction, distance)) {
|
if (!box.findRayIntersection(args->origin, args->direction, distance)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue