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.
|
|
Implement snappedi, snappedf, and Vector[2/3/4]i.snapped
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implement built-in classes Vector4, Vector4i and Projection.
* Two versions of Vector4 (float and integer).
* A Projection class, which is a 4x4 matrix specialized in projection types.
These types have been requested for a long time, but given they were very corner case they were not added before.
Because in Godot 4, reimplementing parts of the rendering engine is now possible, access to these types (heavily used by the rendering code) becomes a necessity.
**Q**: Why Projection and not Matrix4?
**A**: Godot does not use Matrix2, Matrix3, Matrix4x3, etc. naming convention because, within the engine, these types always have a *purpose*. As such, Godot names them: Transform2D, Transform3D or Basis. In this case, this 4x4 matrix is _always_ used as a _Projection_, hence the naming.
|