Commit Graph

81 Commits

Author SHA1 Message Date
Clemens Tolboom
36c87b3400 Make more explicit there are noise_types. (#6802)
* Make more explicit there are noise_types.

It helped me to convert https://docs.godotengine.org/en/stable/classes/class_opensimplexnoise.html to know of types in this example.
2023-02-24 15:09:02 +01:00
Clemens Tolboom
34712bb919 There is no 4D noise in base Noise 2023-02-22 16:00:54 +01: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
Yuri Rubinsky
d85afb42f5 Remove incorrect sentence in tutorial of random_number_generation 2022-12-15 15:05:07 +03:00
Max Hilbrunner
99d3d0be12 Renames / fixes for Godot 4 2022-10-17 00:35:07 +02:00
Max Hilbrunner
198393eec7 More Godot 4 rename fixes (#6315)
* Spatial -> 3D, Transform, Quaternion

* File -> FileAccess

* Camera -> Camera3D

* Update references to MeshInstance and MultiMeshInstance

* ImmediateGeometry -> ImmediateMesh, misc renames
2022-10-15 20:54:47 +02:00
Max Hilbrunner
b82cd0690d A bunch of renames for Godot 4.0 2022-10-15 18:19:12 +02:00
Max Hilbrunner
024fedb0f3 Kinematic -> Character 2022-10-15 17:55:24 +02:00
Saarg
5f53d1d03d Update references to OpenSimplexNoise to use FastNoiseLite 2022-08-16 17:50:48 -04:00
Aaron Franke
503511ce30 Improve wording in Matrices and Transforms article, update for Godot 4 2022-07-02 11:25:23 -05:00
Aaron Franke
da14b8000d Add C# code examples (salvage of VinnNo's PRs) 2022-04-29 08:08:09 -05:00
Arpit Srivastava
bee17514c9 Fix missing word in Beziers, curves and paths (#5654) 2022-02-27 19:18:53 +01:00
Rémi Verschelde
9a05eef561 4.0: Convert Sprite references to Sprite2D
Some screenshots will need to be updated so that the scene structures shown
in screenshot fit what the code blocks are referring to.
2021-10-06 14:29:55 +02:00
Aaron Franke
5c7f653347 Optimize PNG and SVG images using oxipng and svgcleaner (#5254) 2021-09-14 17:50:17 +02:00
Selgesel
8f4fbffaf7 Fix cubic interpolation method reference links (#5221) 2021-09-02 12:54:32 +02:00
Marcin Sędłak-Jakubowski
bd19917ea0 Draft: Remove "simple", "simply", "easy", and "just" from the docs (#4496)
* Various style edits

* Edit out "simple" when possible

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2021-07-11 14:38:53 +02:00
soringherghisan
94ff2dde80 Random number generation: Fix comment for randi_range() example (#4998) 2021-06-15 19:09:20 +02:00
Rémi Verschelde
044b6a74f8 Cleanup uses of double spaces between words or after punctuation 2021-06-07 10:44:02 +02:00
BlueStag
4cfe07b696 Fixed "GetNode" inconsistency
See #4794
2021-04-27 17:07:52 +01:00
zacryol
1fc21c57ec Fix description of randfn() in Random number generation (#4759) 2021-03-16 22:05:06 +01:00
Samuel Laferriere
9458eec42b Fix GDScript code sample in Matrices and transforms (#4731) 2021-03-09 02:51:29 +01:00
Hugo Locurcio
54c83c3e4a Add a background to math formulas to make them readable on dark theme (#4288)
This closes #4286.
2020-10-22 20:02:17 +02: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
Hugo Locurcio
5b66b08787 Fix syntax error in the randi_range() example in the RNG tutorial 2020-10-02 13:39:49 +02:00
Nathan Lovato
5546ec3f90 Edit random_numbers.rst
Remove parens, passive voice -> direct voice, fix some typos, simplify some of the language, and add a short intro listing what the reader will learn
2020-09-30 16:42:28 -06:00
Hugo Locurcio
7d9ffa77a7 Add a random number generation tutorial
This closes #2436.
2020-09-30 16:42:22 +02:00
Hugo Locurcio
747af9b3c7 Mention the Node2D shearing property in Matrices and transforms
This closes #3604.
2020-09-09 14:15:06 +02:00
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
Rémi Verschelde
ce7a9a6eab Images: Remove unused images (no 'image::' or 'figure::' reference) 2020-06-05 14:43:20 +02:00
Duroxxigar
a7ff290bb7 Adjusted wording for matrices and transforms to be more friendly 2020-06-04 23:33:23 -04:00
Hugo Locurcio
4f6fdbc710 Fix various spacing and capitalization issues 2020-05-18 09:54:32 +02:00
Hugo Locurcio
d494d19dac Remove trailing whitespace and irregular whitespace 2020-05-17 00:26:19 +02:00
Hugo Locurcio
046215542d Fix some typos and grammar mistakes found using LanguageTool 2020-04-16 23:07:05 +02:00
Hugo Locurcio
8e0caddac3 Fix typos found using codespell -wi3 ^classes/**/*.rst 2020-04-16 21:01:09 +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
Yuri Sizov
37604be65f Improved keystroke formatting for shortcuts and key press menti… (#3257) 2020-03-09 23:50:53 +01:00
Aaron Franke
28a04d587b Fix code samples for Matrices and Transforms 2020-02-17 22:10:35 -05:00
Aaron Franke
f0ab9e05fc Rewrite Matrices and Transforms article 2020-02-10 01:47:30 -05:00
Hugo Locurcio
c1c5cd62cd Fix some images being difficult to read when using the dark theme
Adding the background color `#fcfcfc` (which matches the light theme's
background color) makes images readable again when using the dark theme.
2020-01-31 01:54:15 +01:00
Matthew
0010cd5f9e Fix advanced vector math images for dark mode (#3122) 2020-01-29 17:30:14 +01:00
Rémi Verschelde
e23ee5b081 Fix typos with codespell
Using codespell 1.16.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-12-06 22:07:59 +01:00
Chris Bradfield
ddd0587e8e Merge pull request #2806 from anoadragon453/anoa/vector_math_titles
Fix titles in Vector Math page
2019-10-06 13:47:27 -07:00
Andrew Morgan
c6ced03837 Remove redundant phrase 2019-10-01 21:43:09 +01:00
Andrew Morgan
d7fab7ccd5 Fix titles in Vector Math page 2019-09-30 23:28:20 +01:00
Nathan Lovato
392e5a005e Proof Bezier, curves and paths tutorial
Up until the Curve* nodes in Godot
2019-05-01 09:23:27 +09:00
Rémi Verschelde
e40f3da2d5 Formatting fixes to new tutorials 2019-04-24 07:27:39 +02:00
Michael Alexsander Silva Dias
38bfbcdc35 General fixes for new interpolation and curves tutorials 2019-04-23 17:44:02 -03:00
Juan Linietsky
9a107a399a Fixes to tutorials 2019-04-23 15:13:06 -03:00