From 6a85acdffbc11bedbe62da23eafd3a913abebb77 Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Thu, 12 May 2016 18:35:23 -0500 Subject: [PATCH] Fix some errors in some rotation functions, also clarify that certain parameters are expressed in radians (cherry picked from commit 70ec87ecd26f1f9933a8d6c18454b0034cb9095d) --- doc/base/classes.xml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 4418d24f683..dcb88c9c25b 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -19579,6 +19579,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + Set the rotation of the 2D node. @@ -19702,7 +19703,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - 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. @@ -22346,7 +22347,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - 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 @@ -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 - Direction in degrees at which the particles will be attracted + Direction in radians at which the particles will be attracted 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 - Initial angle at which each particle will be spawned + Initial angle in radians at which each particle will be spawned Initial size of each particle @@ -26272,21 +26273,21 @@ This method controls whether the position between two cached points is interpola - Returns the polygon texture offset + Returns the polygon texture offset. - 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. - Returns the rotation in degrees of the texture polygon + Returns the rotation in radians of the texture polygon.