Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Sphere' object has no attribute 'intersectsSphere' #15

Open
dronov-dmitry opened this issue Oct 7, 2022 · 1 comment
Open

'Sphere' object has no attribute 'intersectsSphere' #15

dronov-dmitry opened this issue Oct 7, 2022 · 1 comment

Comments

@dronov-dmitry
Copy link

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'

@AlexisTercero55
Copy link

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:

issue-threepy

Kind regards! :3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants