Better format arguments in variant parser

This commit is contained in:
Michael Alexsander Silva Dias
2019-09-24 14:45:03 -03:00
committed by Michael Alexsander
parent 407229aeeb
commit 0ff4095b36
222 changed files with 842 additions and 843 deletions
+2 -2
View File
@@ -24,7 +24,7 @@
</return>
<argument index="0" name="force" type="Vector2">
</argument>
<argument index="1" name="position" type="Vector2" default="Vector2( 0, 0 )">
<argument index="1" name="position" type="Vector2" default="Vector2(0, 0)">
</argument>
<description>
Adds a positioned force to the body. Both the force and the offset from the body origin are in global coordinates.
@@ -53,7 +53,7 @@
</return>
<argument index="0" name="impulse" type="Vector2">
</argument>
<argument index="1" name="position" type="Vector2" default="Vector2( 0, 0 )">
<argument index="1" name="position" type="Vector2" default="Vector2(0, 0)">
</argument>
<description>
Applies a positioned impulse to the body. An impulse is time-independent! Applying an impulse every frame would result in a framerate-dependent force. For this reason, it should only be used when simulating one-time impacts (use the "_force" functions otherwise). The offset uses the rotation of the global coordinate system, but is centered at the object's origin.