22 Commits

Author SHA1 Message Date
Yuri Sizov
cd92be066d Update references to private class methods across the docs 2023-11-10 16:06:36 +01:00
Markus Sauermann
2eafb5c591 Fix wording for scalar multiplication of vectors (#7631)
Also add an example for multiplication with a negative scalar
2023-07-17 17:16:09 +02:00
Rémi Verschelde
c0761647f4 Tweak Vector math page (style, links, more notes)
Also cleanup style issues in the docs image guidelines.
2023-06-12 14:51:16 +02:00
yashmistri
e6cd08fa79 Fix vector math tutorial 2023-05-20 15:06:56 -04:00
Raul Santos
b319da3f07 Update some C# examples for 4.0 (#6693)
* Update some C# examples

- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Other minor code fixes.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-04 17:03:03 +01:00
Max Hilbrunner
024fedb0f3 Kinematic -> Character 2022-10-15 17:55:24 +02:00
BlueStag
4cfe07b696 Fixed "GetNode" inconsistency
See #4794
2021-04-27 17:07:52 +01:00
Nathan Lovato
06353e8635 Fix indentation in vector_math.rst, fill at 80 characters 2020-10-11 11:23:29 -06:00
Nathan Lovato
b56d20d3a6 Update tutorials/math/vector_math.rst 2020-10-11 10:25:26 -06:00
Arpit Srivastava
4b323d566e Update vector math doc
In the section explaining about normalizing a vector. In the warning, it says we cannot normalize a vector with a length of 0. And doing so will result in an error.

But after testing out normalizing a vector ( via normalized() function ), no errors are reported. Also printing out to the console shows (0, 0, 0) as the output. Similarly, normalizing manually by dividing it by the length shows strange result if printed out, but still no error.

I think GDScript ( not tested with other languages ) handles normalization of vector in such a way that we don't have to worry about normalizing a vector of length 0 ( only when done through normalized() function ).
2020-10-11 19:47:56 +05:30
Rémi Verschelde
c58ed951a1 Drop LaTeX dependency via usage of sphinx.ext.imgmath in Vector Math tutorial
It's the only tutorial where we used the extension for *3* formulas which anyway
ended up as fairly low res static images generated by sphinx.ext.imgmath, so
requiring ~1 GB of LaTeX setup for it is overkill.

The replacement pictures are the ones generated by sphinx.ext.imgmath, we could
replace them by higher resolution ones.
2020-07-15 09:58:21 +02:00
Aaron Franke
a9ef557151 Use direction_to, remove code example for manually normalizing (#3330)
Also link to matrices and transforms and 3Blue1Brown from within the advanced vector math article.
2020-03-31 16:06:18 +02:00
Andrew Morgan
d7fab7ccd5 Fix titles in Vector Math page 2019-09-30 23:28:20 +01:00
corrigentia
321aa482d9 Fix punctuation in vector_math
Fix punctuation in vector_math.
2018-12-22 12:40:37 +02:00
Rémi Verschelde
4ef06a4135 Removing trailing whitespace
With `sed -i $(rg -l '[[:blank:]]*$' -g'!classes') -e 's/[[:blank:]]*$//g'`
2018-11-20 11:08:34 +01:00
Rémi Verschelde
e29dc58cbb Heading capitalization fixes + misc edits 2018-08-23 10:57:22 +02:00
Max Hilbrunner
3e112b9bde Typo fix 2018-05-07 09:23:18 +02:00
mhilbrunner
f215a0cf26 Proofing/review: Remove filler words, adhere to style guide 2018-05-06 05:23:37 +02:00
Kelly Thomas
7dd3145a56 Reword references to GDScript code samples 2018-04-05 20:27:30 +08:00
Kelly thomas
95584177a5 Add c# samples to Vector Math 2018-04-05 20:05:58 +08:00
Omicron
dda2641fce Fixing missing Sphinx math tag 2018-01-27 18:34:56 +01:00
Nathan
18f889b6a4 Improve docs structure
Change Step by Step in Getting Started
Remove Engine Features category, move into a new Tutorials top-level section
2018-01-25 08:54:27 +01:00