Fix some errors in some rotation functions, also clarify that certain parameters are expressed in radians

(cherry picked from commit 70ec87ecd2)
This commit is contained in:
Daniel J. Ramirez 2016-05-12 18:35:23 -05:00 committed by Rémi Verschelde
parent 094a9c3bcc
commit 6a85acdffb

View file

@ -19579,6 +19579,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
<argument index="0" name="degrees" type="float">
</argument>
<description>
Set the rotation of the 2D node.
</description>
</method>
<method name="set_scale">
@ -19702,7 +19703,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
<argument index="0" name="point" type="Vector2">
</argument>
<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>
</method>
<method name="set_z">
@ -22346,7 +22347,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
</methods>
<constants>
<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 name="PARAM_SPREAD" value="1">
</constant>
@ -22360,7 +22361,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
Velocity at which the particles will orbit around the emitter center
</constant>
<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 name="PARAM_GRAVITY_STRENGTH" value="6">
Strength of the gravitation attraction for each particle
@ -22373,7 +22374,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
Amount of damping for each particle
</constant>
<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 name="PARAM_INITIAL_SIZE" value="11">
Initial size of each particle
@ -26272,21 +26273,21 @@ This method controls whether the position between two cached points is interpola
<return type="Vector2">
</return>
<description>
Returns the polygon texture offset
Returns the polygon texture offset.
</description>
</method>
<method name="set_texture_rotation">
<argument index="0" name="texture_rotation" type="float">
</argument>
<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>
</method>
<method name="get_texture_rotation" qualifiers="const">
<return type="float">
</return>
<description>
Returns the rotation in degrees of the texture polygon
Returns the rotation in radians of the texture polygon.
</description>
</method>
<method name="set_texture_scale">