three.py
three.py copied to clipboard
'Sphere' object has no attribute 'intersectsSphere'
When i run TestCollisionDetection.py It wright me: 'Sphere' object has no attribute 'intersectsSphere'
Full error text is :
Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "c:/Users/Admin/Documents/MEGAsync/06_All/14_JS/02_PythonJS/three.py-master/three.py-master/three.py/TestCollisionDetection.py", line 95, in <module> TestCollisionDetection().run() File "c:\Users\Admin\Documents\MEGAsync\06_All\14_JS\02_PythonJS\three.py-master\three.py-master\three.py\core\Base.py", line 76, in run self.update() File "c:/Users/Admin/Documents/MEGAsync/06_All/14_JS/02_PythonJS/three.py-master/three.py-master/three.py/TestCollisionDetection.py", line 71, in update if mesh.overlaps(self.Mesh1): File "c:\Users\Admin\Documents\MEGAsync\06_All\14_JS\02_PythonJS\three.py-master\three.py-master\three.py\physics\ComponentMesh.py", line 20, in overlaps overlaps = (self.componentDict["Sphere"].intersectsSphere(other.componentDict["Sphere"])) AttributeError: 'Sphere' object has no attribute 'intersectsSphere'
It seems just a misspelled attribute, it was fixed by replace .intersectsSphere
for .intersectSphere
at ./physics/ComponentMesh.py:20:50
. I've request for merge the changes. After changes it runs well:
Kind regards! :3