You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "build/x11-64/pythonscript/_godot_instance.pxi", line 98, in _godot.pythonscript_instance_call_method
File "/home/mariomey/md-godot/test/TestTransform2D.py", line 13, in _ready
t.x *= 2
AttributeError: 'godot.builtins.Transform2D' object has no attribute 'x'
So, the only way (I found) to achieve exactly the same, is:
Traceback (most recent call last):
File "build/x11-64/pythonscript/_godot_instance.pxi", line 98, in _godot.pythonscript_instance_call_method
File "/home/mariomey/md-godot/test/TestTransform2D.py", line 9, in _ready
s.origin = Vector2(350, 150)
AttributeError: attribute 'origin' of 'godot.builtins.Transform2D' objects is not writable
By trying the first code of the Matrixes and Transformation documentation, I do this:
... and I get this:
So, the only way (I found) to achieve exactly the same, is:
Why we can't modify a
Transform2D
object as in GDScript?The text was updated successfully, but these errors were encountered: