Fix some errors in some rotation functions, also clarify that certain parameters are expressed in radians
This commit is contained in:
parent
e4765c4831
commit
70ec87ecd2
|
@ -20767,6 +20767,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="degrees" type="float">
|
<argument index="0" name="degrees" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
|
Set the rotation of the 2D node.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_scale">
|
<method name="set_scale">
|
||||||
|
@ -20890,7 +20891,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
<argument index="0" name="point" type="Vector2">
|
<argument index="0" name="point" type="Vector2">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Return the rotation angle needed for the 2d node to point at 'point' position.
|
Return the rotation angle in radians needed for the 2d node to point at 'point' position.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_z">
|
<method name="set_z">
|
||||||
|
@ -23578,7 +23579,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
</methods>
|
</methods>
|
||||||
<constants>
|
<constants>
|
||||||
<constant name="PARAM_DIRECTION" value="0">
|
<constant name="PARAM_DIRECTION" value="0">
|
||||||
Direction in degrees at which the particles will be launched, Notice that when the direction is set to 0 the particles will be launched to the negative
|
Direction in radians at which the particles will be launched, Notice that when the direction is set to 0 the particles will be launched to the negative
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="PARAM_SPREAD" value="1">
|
<constant name="PARAM_SPREAD" value="1">
|
||||||
</constant>
|
</constant>
|
||||||
|
@ -23592,7 +23593,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
Velocity at which the particles will orbit around the emitter center
|
Velocity at which the particles will orbit around the emitter center
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="PARAM_GRAVITY_DIRECTION" value="5">
|
<constant name="PARAM_GRAVITY_DIRECTION" value="5">
|
||||||
Direction in degrees at which the particles will be attracted
|
Direction in radians at which the particles will be attracted
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="PARAM_GRAVITY_STRENGTH" value="6">
|
<constant name="PARAM_GRAVITY_STRENGTH" value="6">
|
||||||
Strength of the gravitation attraction for each particle
|
Strength of the gravitation attraction for each particle
|
||||||
|
@ -23605,7 +23606,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||||
Amount of damping for each particle
|
Amount of damping for each particle
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="PARAM_INITIAL_ANGLE" value="10">
|
<constant name="PARAM_INITIAL_ANGLE" value="10">
|
||||||
Initial angle at which each particle will be spawned
|
Initial angle in radians at which each particle will be spawned
|
||||||
</constant>
|
</constant>
|
||||||
<constant name="PARAM_INITIAL_SIZE" value="11">
|
<constant name="PARAM_INITIAL_SIZE" value="11">
|
||||||
Initial size of each particle
|
Initial size of each particle
|
||||||
|
@ -27613,21 +27614,21 @@ This method controls whether the position between two cached points is interpola
|
||||||
<return type="Vector2">
|
<return type="Vector2">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the polygon texture offset
|
Returns the polygon texture offset.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_texture_rotation">
|
<method name="set_texture_rotation">
|
||||||
<argument index="0" name="texture_rotation" type="float">
|
<argument index="0" name="texture_rotation" type="float">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the amount of rotation of the polygon texture, [code]texture_rotation[/code] is specified in degrees and clockwise rotation, meaning that if the texture rotation is set to 45 degrees, the texture will be rotated 45 degrees clockwise along the polygon position plus the texture offset.
|
Sets the amount of rotation of the polygon texture, [code]texture_rotation[/code] is specified in radians and clockwise rotation.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_texture_rotation" qualifiers="const">
|
<method name="get_texture_rotation" qualifiers="const">
|
||||||
<return type="float">
|
<return type="float">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Returns the rotation in degrees of the texture polygon
|
Returns the rotation in radians of the texture polygon.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_texture_scale">
|
<method name="set_texture_scale">
|
||||||
|
|
Loading…
Reference in New Issue