Reduce maximum raycast distance.
This commit is contained in:
parent
2557df5e58
commit
6def097021
@ -505,7 +505,7 @@ class WorldView(QGLWidget):
|
|||||||
|
|
||||||
def rayCastInView(self, ray):
|
def rayCastInView(self, ray):
|
||||||
try:
|
try:
|
||||||
result = raycast.rayCastInBounds(ray, self.dimension, maxDistance=2000)
|
result = raycast.rayCastInBounds(ray, self.dimension, maxDistance=200)
|
||||||
position, face = result
|
position, face = result
|
||||||
|
|
||||||
except (raycast.MaxDistanceError, ValueError):
|
except (raycast.MaxDistanceError, ValueError):
|
||||||
|
Reference in New Issue
Block a user