From 203f0693296094400db06f826b03cc1d63929223 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Mon, 2 Nov 2015 17:54:33 +0100 Subject: Expose AudioServer::free(RID rid) as AudioServer::free_rid(RID rid) to avoid script error due to collision with Object method free --- doc/engine_classes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/engine_classes.xml b/doc/engine_classes.xml index af153a16ef..43602e26e9 100644 --- a/doc/engine_classes.xml +++ b/doc/engine_classes.xml @@ -1502,7 +1502,7 @@ - + -- cgit v1.2.3 From 73a80e5509e8715b7ac4a85913c056edda6bc5ea Mon Sep 17 00:00:00 2001 From: Ovnuniarchos Date: Wed, 18 Nov 2015 16:56:26 +0100 Subject: Added definition of bias solver. --- doc/base/classes.xml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index da53cb90a5..83c14231ea 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -30608,6 +30608,7 @@ This method controls whether the position between two cached points is interpola Use a custom solver bias. No need to change this unless you really know what you are doing. + The solver bias is a factor controlling how much two colliding objects "rebound" off each other, to avoid them getting into each other, because of numerical imprecision. @@ -30646,6 +30647,8 @@ This method controls whether the position between two cached points is interpola + + @@ -30656,6 +30659,8 @@ This method controls whether the position between two cached points is interpola + + -- cgit v1.2.3 From 1155ac884c9b9a045de6a5d5ccd9a01fbfe95453 Mon Sep 17 00:00:00 2001 From: Ovnuniarchos Date: Thu, 19 Nov 2015 01:06:50 +0100 Subject: ConvexPolygonShape2D.set_point_cloud documented to do nothing. --- doc/base/classes.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 83c14231ea..e7cc9f4c01 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -6628,7 +6628,7 @@ - Radius of the [CapsuleShape2D]. + Set the radius of the [CapsuleShape2D]. @@ -6642,7 +6642,7 @@ - Height of the [CapsuleShape2D]. + Set the height of the [CapsuleShape2D]. @@ -7666,7 +7666,7 @@ Concave polygon shape. - Concave polygon shape resource, which can be set into a [PhysicsBody] or area. This shape is created by feeding a list of triangles. + Concave polygon shape resource, which can be set into a [PhysicsBody] or area. This shape is created by feeding a list of triangles. @@ -8590,7 +8590,7 @@ - Create the point set from a point cloud. The resulting convex hull will be set as the shape. + Currently, this method does nothing. -- cgit v1.2.3 From 68a0f713b8da43587c3b027abf73f0c891dab2bc Mon Sep 17 00:00:00 2001 From: Ovnuniarchos Date: Thu, 19 Nov 2015 10:35:48 +0100 Subject: Differences between ConvexPolygon2D and ConcavePolygon2D? --- doc/base/classes.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index e7cc9f4c01..d1be39fe43 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -8583,7 +8583,8 @@ Convex Polygon Shape for 2D physics. - Convex Polygon Shape for 2D physics. + Convex Polygon Shape for 2D physics. A convex polygon + Concave polygon 2D shape resource for physics. It is made out of segments and is very optimal for complex polygonal concave collisions. It is really not advised to use for RigidBody nodes. A CollisionPolygon2D in convex decomposition mode (solids) or several convex objects are advised for that instead. Otherwise, a concave polygon 2D shape is better for static collisions. -- cgit v1.2.3 From 8c0c46c2ae4b55c3ce966e218ca8b1e8d78159f1 Mon Sep 17 00:00:00 2001 From: Ovnuniarchos Date: Fri, 20 Nov 2015 18:09:01 +0100 Subject: Inserted explanation about the behaviour of CollsionPolygon2D.set_polygon. --- doc/base/classes.xml | 55 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 43 insertions(+), 12 deletions(-) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index d1be39fe43..32ff75efbd 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -6947,7 +6947,7 @@ Base node for 2D collisionables. - CollisionObject2D is the base class for 2D physics collisionables. They can hold any number of 2D collision shapes. Usually, they are edited by placing CollisionBody2D and CollisionPolygon2D nodes as children. Such nodes are for reference ant not present outside the editor, so code should use the regular shape API. + CollisionObject2D is the base class for 2D physics collisionables. They can hold any number of 2D collision shapes. Usually, they are edited by placing [CollisionBody2D] and [CollisionPolygon2D] nodes as children. Such nodes are for reference and not present outside the editor, so code should use the regular shape API. @@ -7143,58 +7143,69 @@ - Editor-Only class. + Editor-only class for easy editing of collision polygons. - Editor-Only class. This is not present when running the game. It's used in the editor to properly edit and position collision shapes in [CollisionObject2D]. This is not accessible from regular code. This class is for editing custom shape polygons. + Editor-only class. This is not present when running the game. It's used in the editor to properly edit and position collision shapes in [CollisionObject2D]. This is not accessible from regular code. This class is for editing custom shape polygons. + Set the array of points forming the polygon. + When editing the point list via the editor, depending on [method get_build_mode], it has to be a list of points (for [code]build_mode[/code]=0), or a list of lines (for [code]build_mode[/code]=1). In the second case, the even elements of the array define the start point of the line, and the odd elements the end point. + Return the list of points that define the polygon. - + + Set whether the polygon is to be a [ConvexPolygon2D] ([code]build_mode[/code]=0), or a [ConcavePolygon2D] ([code]build_mode[/code]=1). + Return whether the polygon is a [ConvexPolygon2D] ([code]build_mode[/code]=0), or a [ConcavePolygon2D] ([code]build_mode[/code]=1). - + + Set whether this polygon is a trigger. A trigger polygon detects collisions, but is otherwise unaffected by physics (i.e. colliding objects will not get blocked). + Return whether this polygon is a trigger. + Return the index of the first shape generated by the editor. + When [code]build_mode[/code] is set to generate convex polygons, the shape shown in the editor may be decomopsed into many convex polygons. In that case, a range of indexes is needed to directly access the [Shape2D]s. + When [code]build_mode[/code] is set to generate concave polygons, there is only one [Shape2D] generated, so the start index and the end index are the same. + Return the index of the last shape generated by the editor. @@ -7253,40 +7264,45 @@ - Editor-Only class. + Editor-only class for easy editing of shapes. - Editor-Only class. This is not present when running the game. It's used in the editor to properly edit and position collision shapes in [CollisionObject2D]. This is not accessible from regular code. + Editor-only class. This is not present when running the game. It's used in the editor to properly edit and position collision shapes in [CollisionObject2D]. This is not accessible from regular code. + Set this shape's [Shape2D]. This will not appear as a node, but can be directly edited as a property. + Return this shape's [Shape2D]. + Set whether this shape is a trigger. A trigger shape detects collisions, but is otherwise unaffected by physics (i.e. will not block movement of colliding objects). + Return whether this shape is a trigger. + Return the index of this shape inside its container [CollisionObject2D]. This can be used to directly access the underlying [Shape2D]. @@ -7693,6 +7709,7 @@ Concave polygon 2D shape resource for physics. It is made out of segments and is very optimal for complex polygonal concave collisions. It is really not advised to use for RigidBody nodes. A CollisionPolygon2D in convex decomposition mode (solids) or several convex objects are advised for that instead. Otherwise, a concave polygon 2D shape is better for static collisions. + The main difference between a [ConvexPolygonShape2D] and a [ConcavePolygonShape2D] is that a concave polygon assumes it is concave and uses a more complex method of collision detection, and a convex one forces itself to be convex in order to speed up collision detection. @@ -8583,8 +8600,8 @@ Convex Polygon Shape for 2D physics. - Convex Polygon Shape for 2D physics. A convex polygon - Concave polygon 2D shape resource for physics. It is made out of segments and is very optimal for complex polygonal concave collisions. It is really not advised to use for RigidBody nodes. A CollisionPolygon2D in convex decomposition mode (solids) or several convex objects are advised for that instead. Otherwise, a concave polygon 2D shape is better for static collisions. + Convex Polygon Shape for 2D physics. A convex polygon, whatever its shape, is internally decomposed into as many convex polygons as needed to ensure all collision checks against it are always done on convex polygons (which are faster to check). + The main difference between a [ConvexPolygonShape2D] and a [ConcavePolygonShape2D] is that a concave polygon assumes it is concave and uses a more complex method of collision detection, and a convex one forces itself to be convex in order to speed up collision detection. @@ -26585,19 +26602,21 @@ This method controls whether the position between two cached points is interpola Ray 2D shape resource for physics. - Ray 2D shape resource for physics. A ray is not really a collision body, isntead it tries to separate itself from whatever is touching its far endpoint. It's often useful for ccharacters. + Ray 2D shape resource for physics. A ray is not really a collision body, isntead it tries to separate itself from whatever is touching its far endpoint. It's often useful for characters. + Set the length of the ray. + Return the length of the ray. @@ -29544,24 +29563,28 @@ This method controls whether the position between two cached points is interpola + Set the first point's position. + Return the first point's position. + Set the second point's position. + Return the second point's position. @@ -30609,14 +30632,14 @@ This method controls whether the position between two cached points is interpola Use a custom solver bias. No need to change this unless you really know what you are doing. - The solver bias is a factor controlling how much two colliding objects "rebound" off each other, to avoid them getting into each other, because of numerical imprecision. + The solver bias is a factor controlling how much two objects "rebound" off each other, when colliding, to avoid them getting into each other because of numerical imprecision. - Return the custom solver bias. No need to change this unless you really know what you are doing. + Return the custom solver bias. @@ -30629,6 +30652,8 @@ This method controls whether the position between two cached points is interpola + Return whether this shape is colliding with another. + This method needs the transformation matrix for this shape ([code]local_xform[/code]), the shape to check collisions with ([code]with_shape[/code]), and the transformation matrix of that shape ([code]shape_xform[/code]). @@ -30645,6 +30670,8 @@ This method controls whether the position between two cached points is interpola + Return whether this shape would collide with another, if a given movemen was applied. + This method needs the transformation matrix for this shape ([code]local_xform[/code]), the movement to test on this shape ([code]local_motion[/code]), the shape to check collisions with ([code]with_shape[/code]), the transformation matrix of that shape ([code]shape_xform[/code]), and the movement to test ont the other object ([code]shape_motion[/code]). @@ -30657,6 +30684,8 @@ This method controls whether the position between two cached points is interpola + Return a list of the points where this shape touches another. If there are no collisions, the list is empty. + This method needs the transformation matrix for this shape ([code]local_xform[/code]), the shape to check collisions with ([code]with_shape[/code]), and the transformation matrix of that shape ([code]shape_xform[/code]). @@ -30673,6 +30702,8 @@ This method controls whether the position between two cached points is interpola + Return a list of the points where this shape would touch another, if a given movement was applied. If there are no collisions, the list is empty. + This method needs the transformation matrix for this shape ([code]local_xform[/code]), the movement to test on this shape ([code]local_motion[/code]), the shape to check collisions with ([code]with_shape[/code]), the transformation matrix of that shape ([code]shape_xform[/code]), and the movement to test ont the other object ([code]shape_motion[/code]). -- cgit v1.2.3 From 497efa720cb53f4ddaef661739493069c102db0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 20 Nov 2015 18:39:23 +0100 Subject: Sync doc template with code --- doc/base/classes.xml | 221 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 138 insertions(+), 83 deletions(-) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 32ff75efbd..d0ea373f5c 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -3197,6 +3197,24 @@ + + + + + + + + + + + + + + + + + + @@ -5477,7 +5495,7 @@ - + Group of Buttons. @@ -5523,6 +5541,10 @@ + + + + @@ -7165,7 +7187,7 @@ - + Set whether the polygon is to be a [ConvexPolygon2D] ([code]build_mode[/code]=0), or a [ConcavePolygon2D] ([code]build_mode[/code]=1). @@ -7179,7 +7201,7 @@ - + Set whether this polygon is a trigger. A trigger polygon detects collisions, but is otherwise unaffected by physics (i.e. colliding objects will not get blocked). @@ -7314,7 +7336,7 @@ Color in RGBA format. - A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. Values are in floating point and usually range from 0 to 1. Some methods (such as set_modulate() ) may accept values > 1. + A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. Values are in floating point and usually range from 0 to 1. Some methods (such as set_modulate() ) may accept values > 1. @@ -8608,7 +8630,7 @@ - Currently, this method does nothing. + Currently, this method does nothing. @@ -8889,12 +8911,12 @@ Cubic interpolation tends to follow the curves better, but linear is faster (and + + - - Returns a list of points along the curve, with a curvature controlled point density. That is, the curvier parts will have more points than the straighter parts. This approximation makes straight segments between each point, then subdivides those segments until the resulting shape is similar enough. @@ -8902,16 +8924,6 @@ This approximation makes straight segments between each point, then subdivides t "tolerance_degrees" controls how many degrees the midpoint of a segment may deviate from the real curve, before the segment has to be subdivided. - - - - - - - - - - @@ -9096,12 +9108,12 @@ Cubic interpolation tends to follow the curves better, but linear is faster (and + + - - Returns a list of points along the curve, with a curvature controlled point density. That is, the curvier parts will have more points than the straighter parts. This approximation makes straight segments between each point, then subdivides those segments until the resulting shape is similar enough. @@ -9109,16 +9121,6 @@ This approximation makes straight segments between each point, then subdivides t "tolerance_degrees" controls how many degrees the midpoint of a segment may deviate from the real curve, before the segment has to be subdivided. - - - - - - - - - - @@ -10779,6 +10781,14 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + @@ -12539,7 +12549,7 @@ This approximation makes straight segments between each point, then subdivides t - Connect to a host. This needs to be done before any requests are sent. + Connect to a host. This needs to be done before any requests are sent. The host should not have http:// prepended but will strip the protocol identifier if provided. verify_host will check the SSL identity of the host if set to true. @@ -12563,10 +12573,9 @@ verify_host will check the SSL identity of the host if set to true. - Sends a request to the connected host. The url is the what is normally behind the hostname, -i.e; + Sends a request to the connected host. The url is the what is normally behind the hostname, i.e: http://somehost.com/index.php -url would be "index.php" +url would be "index.php" Headers are HTTP request headers @@ -12584,8 +12593,8 @@ var result = httpClient.request(httpClient.METHOD_POST, "index.php", headers, qu - - Stub function + + Stub function @@ -12594,7 +12603,7 @@ var result = httpClient.request(httpClient.METHOD_POST, "index.php", headers, qu - Stub function + Stub function @@ -12647,14 +12656,14 @@ var result = httpClient.request(httpClient.METHOD_POST, "index.php", headers, qu - Sets the size of the buffer used and maximum bytes to read per iteration + Sets the size of the buffer used and maximum bytes to read per iteration - If set to true, execute will wait until all data is read from the response. + If set to true, execute will wait until all data is read from the response. @@ -12667,30 +12676,30 @@ var result = httpClient.request(httpClient.METHOD_POST, "index.php", headers, qu - Returns a status string like STATUS_REQUESTING. Need to call [method poll] in order to get status updates. + Returns a status string like STATUS_REQUESTING. Need to call [method poll] in order to get status updates. - - This needs to be called in order to have any request processed. Check results with [method get_status] + + This needs to be called in order to have any request processed. Check results with [method get_status] - - - - - - - Generates a GET/POST application/x-www-form-urlencoded style query string from a provided dictionary. + + + + + + + Generates a GET/POST application/x-www-form-urlencoded style query string from a provided dictionary. var fields = {"username": "user", "password": "pass"} String queryString = httpClient.query_string_from_dict(fields) returns:= "username=user&password=pass" - - + + @@ -14471,6 +14480,12 @@ returns:= "username=user&password=pass" + + + + + + @@ -15920,6 +15935,18 @@ returns:= "username=user&password=pass" LineEdit provides a single line string editor, used for text fields. + + + + + + + + + + + + Clear the [LineEdit] text. @@ -16033,6 +16060,14 @@ returns:= "username=user&password=pass" + + + + + + + + @@ -16700,11 +16735,11 @@ returns:= "username=user&password=pass" - + - + - + @@ -16751,6 +16786,8 @@ returns:= "username=user&password=pass" + + @@ -18602,6 +18639,18 @@ returns:= "username=user&password=pass" Replace a node in a scene by a given one. Subscriptions that pass through this node will be lost. + + + + + + + + + + + + @@ -21591,16 +21640,16 @@ This method controls whether the position between two cached points is interpola - Forbids the PathFollow to rotate. + Forbids the PathFollow to rotate. - Allows the PathFollow to rotate in the Y axis only. + Allows the PathFollow to rotate in the Y axis only. - Allows the PathFollow to rotate in both the X, and Y axes. + Allows the PathFollow to rotate in both the X, and Y axes. - Allows the PathFollow to rotate in any axis. + Allows the PathFollow to rotate in any axis. @@ -21715,10 +21764,6 @@ This method controls whether the position between two cached points is interpola - - - - @@ -26075,6 +26120,14 @@ This method controls whether the position between two cached points is interpola + + + + + + + + @@ -26886,27 +26939,22 @@ This method controls whether the position between two cached points is interpola - [OK] if the regular expression was valid. [FAIL] otherwise. - The string to be converted into a regular expression. + + - Once created, a RegEx object needs a regular expression to be assigned to it. This method tries to convert the string given to an usable regular expression. - The position within the string (starting with 0) where the pattern was found. It will return -1 if the pattern was not found, it was invalid, or the start or end positions were beyond the string's end. - The text to search the pattern in. - The position in the string (starting with 0) to start searching from. - The position in the string (starting with 0) to stop searching. A value less than the start position means "end of the string". This method tries to find the pattern within the string, and returns the position where it was found. It also stores any capturing group (see [method get_capture]) for further retrieval. @@ -26935,7 +26983,6 @@ This method controls whether the position between two cached points is interpola - The number of the captured group, starting with 0. Like other regular expression engines, Godot's engine takes 0 as the full expression, and 1 as the first pair of capturing parentheses. Returns a captured group. A captured group is the part of a string that matches a part of the pattern delimited by parentheses (unless they are non-capturing parentheses [i](?:)[/i]). @@ -26943,7 +26990,6 @@ This method controls whether the position between two cached points is interpola - A list contining all the strings captured by the regular expression. Return a list of all the captures made by the regular expression. @@ -30675,8 +30721,6 @@ This method controls whether the position between two cached points is interpola - - @@ -30689,8 +30733,6 @@ This method controls whether the position between two cached points is interpola - - @@ -34025,15 +34067,17 @@ This method controls whether the position between two cached points is interpola + + - Set the current column of the text editor. + + - Set the current line of the text editor. @@ -36289,6 +36333,18 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + @@ -37441,6 +37497,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -37459,13 +37521,6 @@ This method controls whether the position between two cached points is interpola Returns the angle in radians between the line connecting the two points and the x coordinate. - - - - - Returns the result of atan2 when called with the Vector's x and y as parameters. - - -- cgit v1.2.3 From 0c8dda80ff23859ca9faf6ed1033427c22acb4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 20 Nov 2015 18:47:18 +0100 Subject: Update Vector2.angle() description --- doc/base/classes.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index d0ea373f5c..44a7cccfe5 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -37501,6 +37501,8 @@ This method controls whether the position between two cached points is interpola + Returns the result of atan2 when called with the Vector's x and y as parameters (Math::atan2(x,y)). + Be aware that it therefore returns an angle oriented clockwise with regard to the (0, 1) unit vector, and not an angle oriented counter-clockwise with regard to the (1, 0) unit vector (which would be the typical trigonometric representation of the angle when calling Math::atan2(y,x)). -- cgit v1.2.3 From 18dfb16e262578da84ed8e21529bf52c01e92a08 Mon Sep 17 00:00:00 2001 From: zvodd Date: Mon, 23 Nov 2015 12:52:43 +1100 Subject: fix poorly formed documentation xml, text outside of tags --- doc/core_classes.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/core_classes.xml b/doc/core_classes.xml index 02b46ac4b9..c37b50f122 100644 --- a/doc/core_classes.xml +++ b/doc/core_classes.xml @@ -575,8 +575,8 @@ 3x3 Matrix. - Matrix represent a 3x3 (3 rows by 3 columns) transformation matrix. it is used mainly to represent and accumulate transformations such as rotation or scale when used as an OCS (oriented coordinate system). + @@ -937,8 +937,8 @@ Vector used for 2D Math. - Vector class, which performs basic 2D vector math operations. + -- cgit v1.2.3 From ca750fb7bca0211b02bdbf292d98c958ea00631e Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Mon, 23 Nov 2015 13:57:57 +0200 Subject: Update doc with -doctool. --- doc/base/classes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 44a7cccfe5..2e7bde6549 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -4371,7 +4371,7 @@ Stop a given voice. - + -- cgit v1.2.3 From 4359a90ccab188675aa00f62dcf67411a6d1ff1e Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Mon, 23 Nov 2015 14:18:13 +0200 Subject: Document Vector3 and Vector3Array. Fix documentation of Vector2 and Vector2Array. --- doc/base/classes.xml | 46 +++++++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 13 deletions(-) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 2e7bde6549..a26458a14f 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -37623,7 +37623,7 @@ This method controls whether the position between two cached points is interpola - Reflects/mirrors the vector around another vector. + Like "slide", but reflects the Vector instead of continuing along the wall. @@ -37687,10 +37687,10 @@ This method controls whether the position between two cached points is interpola - An Array of Vector2's. + An Array of Vector2. - An Array specifically designed to hold Vector2's. + An Array specifically designed to hold Vector2. @@ -37699,21 +37699,21 @@ This method controls whether the position between two cached points is interpola - Get the Vector2 at the given index. + Returns the Vector2 at the given index. - Insert a new Vector2. + Inserts a Vector2 at the end. - Set the size of the Vector2Array. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array. + Sets the size of the Vector2Array. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array. @@ -37722,7 +37722,7 @@ This method controls whether the position between two cached points is interpola - Set the Vector2 at the given index. + Changes the Vector2 at the given index. @@ -37757,12 +37757,14 @@ This method controls whether the position between two cached points is interpola + Returns a new vector with all components in absolute values (e.g. positive). + Returns a new vector with all components rounded up. @@ -37786,7 +37788,7 @@ This method controls whether the position between two cached points is interpola - Perform a cubic interpolation between vectors a,b,c,d (b is current), by the given amount (i). + Perform a cubic interpolation between vectors pre_a, a, b, post_b (a is current), by the given amount (t). @@ -37795,7 +37797,7 @@ This method controls whether the position between two cached points is interpola - Return the squared distance (distance minus the last square root) to b. + Return the squared distance (distance minus the last square root) to b. Prefer this function over distance_to if you need to sort vectors or need the squared distance for some formula. @@ -37820,13 +37822,14 @@ This method controls whether the position between two cached points is interpola + Returns a new vector with all components rounded down. - Returns the inverse of the vector. this is the same as Vector3( 1.0 / v.x, 1.0 / v.y, 1.0 / v.z ) + Returns the inverse of the vector. This is the same as Vector3( 1.0 / v.x, 1.0 / v.y, 1.0 / v.z ) @@ -37840,7 +37843,7 @@ This method controls whether the position between two cached points is interpola - Return the length of the vector, squared. + Return the length of the vector, squared. Prefer this function over "length" if you need to sort vectors or need the squared length for some formula. @@ -37851,26 +37854,28 @@ This method controls whether the position between two cached points is interpola - Linearly interpolates the vector to a given one (b), by the given amount (i). + Linearly interpolates the vector to a given one (b), by the given amount (t). + Returns AXIS_X, AXIS_Y or AXIS_Z depending on which axis is the largest. + Returns AXIS_X, AXIS_Y or AXIS_Z depending on which axis is the smallest. - Return a copy of the normalized vector to unit length. This is the same as v / v.length() + Return a copy of the normalized vector to unit length. This is the same as v / v.length(). @@ -37879,6 +37884,7 @@ This method controls whether the position between two cached points is interpola + Like "slide", but reflects the Vector instead of continuing along the wall. @@ -37889,6 +37895,7 @@ This method controls whether the position between two cached points is interpola + Rotates the vector around some axis by phi radians. @@ -37897,6 +37904,7 @@ This method controls whether the position between two cached points is interpola + Slides the vector along a wall. @@ -37918,6 +37926,7 @@ This method controls whether the position between two cached points is interpola + Returns a Vector3 with the given components. @@ -37931,17 +37940,22 @@ This method controls whether the position between two cached points is interpola + Enumerated value for the X axis. Returned by functions like max_axis or min_axis. + Enumerated value for the Y axis. + Enumerated value for the Z axis. + An Array of Vector3. + An Array specifically designed to hold Vector3. @@ -37950,18 +37964,21 @@ This method controls whether the position between two cached points is interpola + Returns the Vector3 at the given index. + Inserts a Vector3 at the end. + Sets the size of the Vector3Array. If larger than the current size it will reserve some space beforehand, and if it is smaller it will cut off the array. @@ -37970,12 +37987,14 @@ This method controls whether the position between two cached points is interpola + Changes the Vector3 at the given index. + Returns the size of the array. @@ -37984,6 +38003,7 @@ This method controls whether the position between two cached points is interpola + Constructs a new Vector3Array. Optionally, you can pass in an Array that will be converted. -- cgit v1.2.3 From a961347d8c9e1808e80da5b996cd7ab929f5eabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 23 Nov 2015 19:07:32 +0100 Subject: Fix return type of Matrix32 member vars Thanks to @bojidar-bg for localising the issue. --- doc/base/classes.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index a26458a14f..aa310b15c9 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -16735,11 +16735,11 @@ returns:= "username=user&password=pass" - + - + - + -- cgit v1.2.3 From 323938cc28cede46092bf5adecbd28206ee71481 Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 24 Nov 2015 05:46:00 +0100 Subject: Document byte conversion methods for Strings --- doc/base/classes.xml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index aa310b15c9..12f9062888 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -12551,7 +12551,7 @@ This approximation makes straight segments between each point, then subdivides t Connect to a host. This needs to be done before any requests are sent. The host should not have http:// prepended but will strip the protocol identifier if provided. - + verify_host will check the SSL identity of the host if set to true. @@ -12576,9 +12576,9 @@ verify_host will check the SSL identity of the host if set to true. Sends a request to the connected host. The url is the what is normally behind the hostname, i.e: http://somehost.com/index.php url would be "index.php" - + Headers are HTTP request headers - + To create a POST request with query strings to push to the server, do: var fields = {"username" : "user", "password" : "pass"} @@ -12693,10 +12693,10 @@ var result = httpClient.request(httpClient.METHOD_POST, "index.php", headers, qu Generates a GET/POST application/x-www-form-urlencoded style query string from a provided dictionary. - + var fields = {"username": "user", "password": "pass"} String queryString = httpClient.query_string_from_dict(fields) - + returns:= "username=user&password=pass" @@ -26372,12 +26372,14 @@ This method controls whether the position between two cached points is interpola + Returns a copy of the array's contents formatted as String. Fast alternative to get_string_from_utf8(), assuming the content is ASCII-only (unlike the UTF-8 function, this function maps every byte to a character in the string, so any multibyte sequence will be torn apart). + Returns a copy of the array's contents formatted as String, assuming the array is formatted as UTF-8. Slower than get_string_from_ascii(), but works for UTF-8. Usually you should prefer this function over get_string_from_ascii() to support international input. @@ -33134,9 +33136,10 @@ This method controls whether the position between two cached points is interpola - + + Convert the String (which is a character array) to RawArray (which is an array of bytes). The conversion is speeded up in comparison to to_utf8() with the assumption that all the characters the String contains are only ASCII characters. @@ -33168,9 +33171,10 @@ This method controls whether the position between two cached points is interpola - + + Convert the String (which is an array of characters) to RawArray (which is an array of bytes). The conversion is a bit slower than to_ascii(), but supports all UTF-8 characters. Therefore, you should prefer this function over to_ascii(). -- cgit v1.2.3