mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
code review
This commit is contained in:
parent
a91a7942a4
commit
e46c24ea58
1 changed files with 3 additions and 1 deletions
|
@ -268,8 +268,10 @@ bool RenderablePolyVoxEntityItem::findDetailedRayIntersection(const glm::vec3& o
|
||||||
RaycastFunctor callback;
|
RaycastFunctor callback;
|
||||||
raycastResult = PolyVox::raycastWithDirection(_volData, start, pvDirection, callback);
|
raycastResult = PolyVox::raycastWithDirection(_volData, start, pvDirection, callback);
|
||||||
|
|
||||||
if (raycastResult == PolyVox::RaycastResults::Completed) // the ray completed its path -- nothing was hit.
|
if (raycastResult == PolyVox::RaycastResults::Completed) {
|
||||||
|
// the ray completed its path -- nothing was hit.
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
glm::vec4 intersectedWorldPosition = voxelToWorldMatrix() * callback._result;
|
glm::vec4 intersectedWorldPosition = voxelToWorldMatrix() * callback._result;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue