mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
quickfix typo
This commit is contained in:
parent
ed57c0b075
commit
c5ab5996a3
1 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ RayRelation Rays::rayIntersectAAFace<AAFaceKind::Zperp>(
|
|||
rayCoef*rayDir.y + rayOrigin.y,
|
||||
faceMin.z};
|
||||
|
||||
if (rayDir.y > 0){
|
||||
if (rayDir.z > 0){
|
||||
if (intersectPoint_ret.x >= faceMin.x //Face-hit check
|
||||
&& intersectPoint_ret.x <= faceOppositeCorner[0]
|
||||
&& intersectPoint_ret.y >= faceMin.y
|
||||
|
|
@ -244,7 +244,7 @@ RayRelation Rays::isRayIntersectsAAFace<AAFaceKind::Zperp>(
|
|||
rayCoef*rayDir.y + rayOrigin.y * rayDir.z,
|
||||
faceMin.z * rayDir.z};
|
||||
|
||||
if (rayDir.y > 0){
|
||||
if (rayDir.z > 0){
|
||||
if (intersectPointMult.x >= faceMin.x * rayDir.z //Face-hit check
|
||||
&& intersectPointMult.x <= faceOppositeCorner[0] * rayDir.z
|
||||
&& intersectPointMult.y >= faceMin.y * rayDir.z
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue