Age | Commit message (Collapse) | Author |
|
* is_equal_approx
* normalize
* length_squared
* posmod
* posmodv
(cherry picked from commit 6cd8e706fae5dacc908efd1a823e3447e01bfa56)
|
|
* Typo fixes.
* Navigation agent's `velocity_computed` signal is not emitted by
`set_velocity`, but at the end of that frame if `set_velocity` is
called.
* Simplify link in navigation agent's `avoidance_enabled` description.
* Unify `navigation_layers` description across `NavigationAgent{2,3}D`.
* Unify `is_normalized()` description across `Vector2`, `Vector3`, and
`Vector4`
(cherry picked from commit ff97c481d367a8c4e72b6548095ce33c98e4ef33)
|
|
Mention that the results will be unreliable with initial vector near zero.
(cherry picked from commit cca01afd82bd6e7b3e852a66ca459f5d61022585)
|
|
(cherry picked from commit 57d4272984fc0dd4c668503ead82a9dd01020bfd)
|
|
This avoids confusion with the old `bits=64` option and building
for 64-bit CPUs in general.
|
|
The main change is to caculate tangent directly from bezier curve, without going
through discretized polyline, avoiding pitfalls of discretization. A similar refacor
had been applied to Curve3D.
The test cases for Curve2D is updated, comparing floating point with is_equal_approxmiate()
instead of `==`, in order to avoid float precision problem.
|
|
Implement snappedi, snappedf, and Vector[2/3/4]i.snapped
|
|
The main change is to caculate tangent directly from bezier curve, without going
through discretized polyline, avoiding pitfalls of discretization.
Other changes are:
1. Add an bezier_derivative() method for Vector3, Vector2, and Math;
2. Add an tesselate_even_length() method to Curve3D, which tesselate bezier curve to even length segments adaptively;
3. Cache the tangent vectors in baked_tangent_vector_cache;
|
|
|
|
|
|
|
|
|
|
Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too.
- `var2str` -> `var_to_str`
- `str2var` -> `str_to_var`
- `bytes2var` -> `bytes_to_var`
- `bytes2var_with_objects` -> `bytes_to_var_with_objects`
- `var2bytes` -> `var_to_bytes`
- `var2bytes_with_objects` -> `var_to_bytes_with_objects`
- `linear2db` -> `linear_to_db`
- `db2linear` -> `db_to_linear`
- `deg2rad` -> `deg_to_rad`
- `rad2deg` -> `rad_to_deg`
- `dict2inst` -> `dict_to_inst`
- `inst2dict` -> `inst_to_dict`
|
|
|
|
Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
This makes it easier to spot syntax errors when editing the
class reference. The schema is referenced locally so validation
can still work offline.
Each class XML's schema conformance is also checked on GitHub Actions.
|
|
|
|
(cherry picked from commit defb8011200f3ff908dd432cdbc095e4665677ef)
|
|
|
|
Notably:
* `Packed*Array.size()` and `Array.size()`.
* Shared methods of `Transform2D` and `Transform3D`.
* Shared methods of `Vector2`, `Vector3`, and `Vector2i`.
This reduces the Deja Vu when translating the class reference :)
|
|
Fix error in Vector2.reflect() description
|
|
Misc improvements to various docs
|
|
Some cleanup with Vector3(i)'s methods so that it is consistent with Vector2, for example it returns enums internally (GDScript still gets ints).
|
|
Renames parameters that were named differently across different
scripting languages or their documentation to use the same name
everywhere.
|
|
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Raul Santos <raulsntos@gmail.com>
|
|
|
|
|
|
The description was probably copied from Vector3.reflect(), and
unfortunately did not match the 2D behaviour (where n is apparently the
direction vector of the symmetry line, not the normal).
|
|
|
|
Add Graph Illustrations to Doc
|
|
|
|
|
|
For the time being we don't support writing a description for those, preferring
having all details in the method's description.
Using self-closing tags saves half the lines, and prevents contributors from
thinking that they should write the argument or return documentation there.
|
|
* Deprecates GDNative in favor of a simpler, lower level interface.
* New extension system allows registering core engine classes.
* Simple header interface in gdnative_interace.h
|
|
|
|
|
|
|
|
|
|
And move GLTF docs to its module folder.
|
|
|
|
Rename Math::stepify to snapped
|