Since PyMunk's gravity takes in a vector and not a number, and the gravity given by the Entity
class is a number, it throws this exception:
Traceback (most recent call last):
File "E:\FusionEngine\bug-hunting\entities.py", line 12, in <module>
@main.window.loop
^^^^^^^^^^^^^^^^
File "C:\Users\Kivanc64bit\AppData\Local\Programs\Python\Python311\Lib\site-packages\fusionengine\files\window.py", line 58, in loop
your_loop()
File "E:\FusionEngine\bug-hunting\entities.py", line 15, in loop
entity.set_gravity(10)
File "C:\Users\Kivanc64bit\AppData\Local\Programs\Python\Python311\Lib\site-packages\fusionengine\files\body.py", line 89, in set_gravity
self.body.space.gravity = self.gravity
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kivanc64bit\AppData\Local\Programs\Python\Python311\Lib\site-packages\pymunk\space.py", line 230, in _set_gravity
assert len(gravity_vector) == 2
^^^^^^^^^^^^^^^^^^^
TypeError: object of type 'int' has no len()
MERCURY = 3.7
EARTH = 9.807
MOON = 1.62
MARS = 3.71
JUPITER = 24.79
SATURN = 10.44
URANUS = 8.87
NEPTUNE = 11.15
PLUTO = 0.62
ERIS = 0.82
HAUMEA = 0.401
MAKEMAKE = 0.5
I know that the physics engine isn't done yet, and I'm trying to help by reporting bugs and offering potential solutions to these bugs.