diff options
| author | Rémi Verschelde | 2017-04-05 01:23:09 +0200 |
|---|---|---|
| committer | GitHub | 2017-04-05 01:23:09 +0200 |
| commit | 2c4e4432afca009614ffd5ee837d1578f54eb841 (patch) | |
| tree | 8c9ed90c4e1be333672002779cd7f5b3151ea622 /doc/base/classes.xml | |
| parent | 7ed83e988930776826b8e6e7cf0c53f8d50cfe26 (diff) | |
| parent | 1a620bd5faebd83015182ea032f40936a9916af6 (diff) | |
| download | godot-2c4e4432afca009614ffd5ee837d1578f54eb841.tar.gz godot-2c4e4432afca009614ffd5ee837d1578f54eb841.tar.zst godot-2c4e4432afca009614ffd5ee837d1578f54eb841.zip | |
Merge pull request #8214 from tagcup/bounce_reflect_slide
Made slide and reflect active verbs acting on itself in Vector2 and V…
Diffstat (limited to '')
| -rw-r--r-- | doc/base/classes.xml | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index f3d73deaf..7e4d53629 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -46992,6 +46992,15 @@ do_property]. Returns the ratio of X to Y. </description> </method> + <method name="bounce"> + <return type="Vector2"> + </return> + <argument index="0" name="n" type="Vector2"> + </argument> + <description> + Bounce returns the vector "bounced off" from the given plane, specified by its normal vector. + </description> + </method> <method name="clamped"> <return type="Vector2"> </return> @@ -47084,10 +47093,10 @@ do_property]. <method name="reflect"> <return type="Vector2"> </return> - <argument index="0" name="vec" type="Vector2"> + <argument index="0" name="n" type="Vector2"> </argument> <description> - Like "slide", but reflects the Vector instead of continuing along the wall. + Reflects the vector along the given plane, specified by its normal vector. </description> </method> <method name="rotated"> @@ -47102,10 +47111,10 @@ do_property]. <method name="slide"> <return type="Vector2"> </return> - <argument index="0" name="vec" type="Vector2"> + <argument index="0" name="n" type="Vector2"> </argument> <description> - Slides the vector by the other vector. + Slide returns the component of the vector along the given plane, specified by its normal vector. </description> </method> <method name="snapped"> @@ -47178,6 +47187,15 @@ do_property]. <description> </description> </method> + <method name="bounce"> + <return type="Vector3"> + </return> + <argument index="0" name="n" type="Vector3"> + </argument> + <description> + Bounce returns the vector "bounced off" from the given plane, specified by its normal vector. + </description> + </method> <method name="ceil"> <return type="Vector3"> </return> @@ -47308,10 +47326,10 @@ do_property]. <method name="reflect"> <return type="Vector3"> </return> - <argument index="0" name="by" type="Vector3"> + <argument index="0" name="n" type="Vector3"> </argument> <description> - Like "slide", but reflects the Vector instead of continuing along the wall. + Reflects the vector along the given plane, specified by its normal vector. </description> </method> <method name="rotated"> @@ -47328,10 +47346,10 @@ do_property]. <method name="slide"> <return type="Vector3"> </return> - <argument index="0" name="by" type="Vector3"> + <argument index="0" name="n" type="Vector3"> </argument> <description> - Slides the vector along a wall. + Slide returns the component of the vector along the given plane, specified by its normal vector. </description> </method> <method name="snapped"> |
