I fixed an error where the points were being subtracted when they should have been added.
I noticed this when I messed with the export values for point1.
This tutorial had 2 main issues: the code wasn't adapted to Godot
4 syntax and API and the suggested tutorial contained information
to workaround the (at the time) non existence of the `draw_arc()`
function.
A general update has been made, keeping the general structure but
changing the example for something more useful and fun
(replicating the godot logo with draw primitives) and an
additional example with a dynamicaly built drawing (dynamic line).
Too many informalities have been removed on the initial paragraph.
Fixed references to Texture instead of Texture2D.
Fixed old style of exporting properties to the editor.
Fixed inconsistencies calling Node2D, myNode2D and customNode2D.
Moved examples to the end of the page, leaving general information
at the top, and completing that info with images and references.
Removed references to an old demo project (Tetris).
Fixes#4184Fixes#7521
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
There were 4 pages documentation pages still using deg2rad(),
which have been substituted by deg_to_rad() and the examples
tested against 4.0.X.
There was 1 usage of C# Deg2Rad(), now DegToRad().
Some dependent comments and output have been updated accordingly:
(deg_to_rad() is implemented in the Math core functions, not in
the Expressions class), plus some float precission fixes, at
least on my architecture.
Only one mention of rad2deg() was found in all docs.
Fixes#7247
* 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>
* Minor changes to UI control doc
* Step by step minor grammar fixes
* Editor readability and grammar tweaks
* 2D readability and grammar tweaks
* 3D readibility and grammar tweaks, rewrite part of IK
* Fix bad merge
* Add requested changes, update lifebar UI screenshot
Resolved wrapping problem. Was happening because we wrapped angle value at the moment they reach 360. In fact we have to do it only if both angles reach 360 ;) Fixes#151