Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal-1778: Updating Transform.rotated() docs and test cases. #43694

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
6738 commits
Select commit Hold shift + click to select a range
f289b13
Fix arrow pointing in the wrong direction in the Dock Position popup
YeldhamDev Sep 24, 2021
6def32d
Replace `#pragma once` by traditional include guards for consistency
Calinou Sep 23, 2021
7ce02b6
Expose `TabContainer`'s tab hidding for scripts
YeldhamDev Sep 24, 2021
e8efe62
Added set_active(true) to all body direct state force apply/impulses.…
danger-dan Sep 23, 2021
cc23d6d
Merge pull request #52988 from Calinou/remove-pragma-once
akien-mga Sep 24, 2021
10801b9
Merge pull request #52994 from YeldhamDev/dock_popup_arrow_fix
akien-mga Sep 24, 2021
4e0552a
Add selection getter methods to `LineEdit`
Chaosus Sep 24, 2021
d267777
Merge pull request #52939 from bruvzg/remove_v_kern
akien-mga Sep 24, 2021
fb4fadf
Merge pull request #52967 from danger-dan/dev_vehicle_sleep_fix
akien-mga Sep 24, 2021
252ae43
Update AUTHORS and DONORS list
akien-mga Sep 24, 2021
b8a6eb6
Merge pull request #38414 from theoway/Fix-GraphNode_offset_update
akien-mga Sep 24, 2021
5c1195e
Add a special case for 0-time interpolations
KoBeWi Sep 16, 2021
32ab77e
Merge pull request #52430 from AnilBK/vector2-replacements
akien-mga Sep 24, 2021
5e4a712
Merge pull request #53003 from KoBeWi/tween_0()
akien-mga Sep 24, 2021
11e7963
Refactor and move easing equations
KoBeWi Sep 24, 2021
53306cb
Merge pull request #50165 from KoBeWi/take_it_easing
akien-mga Sep 24, 2021
f7e152b
Add Delete All button to ItemList editor
KoBeWi Dec 13, 2020
e70a0d9
Fix incorrect offsets of tooltip content in `CodeEdit`
Chaosus Sep 24, 2021
edf3d22
Fix tab renaming not updating its size in `Tabs`
YeldhamDev Sep 24, 2021
7bf5fc7
Remove binds from Signal.connect
KoBeWi Sep 19, 2021
b9e6cc8
[Net] Enable PacketPeer native extensions.
Faless Aug 28, 2021
5f61b2c
[Net] StreamPeer GDExtension.
Faless Sep 6, 2021
7c81ce4
[Net] Bind Multiplayer to GDExtension.
Faless Sep 6, 2021
2522632
[Net] MultiplayerPeer cleanup, defaults.
Faless Sep 7, 2021
89c718c
Merge pull request #44352 from KoBeWi/ItemList🔥🔥🔥🔥🔥
akien-mga Sep 24, 2021
6cb8154
[Net] Expose WebRTC classes to extensions.
Faless Sep 7, 2021
ead6d10
[Net/GDNative] Remove GDNative network bits.
Faless Sep 7, 2021
2d810e8
[Net/Docs] Update extensions documentation.
Faless Sep 7, 2021
01d505e
Merge pull request #52993 from YeldhamDev/tabs_rename_fix
akien-mga Sep 24, 2021
ccf05ae
Fix Face3::get_random_point_inside()
CaptainProton42 Sep 24, 2021
8b27954
Merge pull request #52987 from Calinou/editor-debugger-color-error-wa…
akien-mga Sep 24, 2021
46cc0af
Merge pull request #53009 from Chaosus/fix_completion_results
akien-mga Sep 24, 2021
ed5f6cc
Fix GPUParticle3D emission point generation
CaptainProton42 Sep 24, 2021
d395dba
Merge pull request #53036 from CaptainProton42/fix-gpuparticles3d-emi…
akien-mga Sep 24, 2021
1a3d53c
TexturePreview Update text when texture is being changed
kleonc Sep 24, 2021
442c65f
Merge pull request #53034 from CaptainProton42/fix-multimesh-populate…
akien-mga Sep 24, 2021
0abe464
Merge pull request #52849 from KoBeWi/know_no_binds
akien-mga Sep 24, 2021
994c120
Merge pull request #52996 from YeldhamDev/im_the_invisible_tab
akien-mga Sep 24, 2021
8734437
Correctly calculate position of the folding arrow in Tree
YuriSizov Sep 24, 2021
de91700
Merge pull request #53024 from kleonc/texture-preview-updating
akien-mga Sep 24, 2021
67db227
Add usability notes to ColorPicker and ColorPickerButton descriptions
YuriSizov Sep 24, 2021
9c13e91
Merge pull request #53038 from pycbouh/tree-fix-folding-arrow-with-ma…
akien-mga Sep 25, 2021
cdd912c
Construct values only when necessary.
AnilBK Sep 25, 2021
9293c76
Merge pull request #53049 from AnilBK/dont-construct-2
akien-mga Sep 25, 2021
7a62bd1
Document Android permission requirements for network access where needed
Calinou Aug 10, 2021
3143e7d
Add history navigation in the script editor using extra mouse buttons
Calinou Mar 8, 2020
97c6851
Use Callable in Thread::start
LATRio Sep 25, 2021
a5332ca
Merge pull request #36910 from Calinou/add-script-nav-extra-mouse-button
akien-mga Sep 25, 2021
9013771
Merge pull request #51518 from Calinou/doc-network-android-permission
akien-mga Sep 25, 2021
1b55d72
fix out of bounds crash in GPUParticle3D::_skinning_changed()
LATRio Sep 25, 2021
ff2f1f5
Merge pull request #53056 from LATRio/53004
akien-mga Sep 25, 2021
e84861d
Make some buttons in editor use the lighter version of the TabMenu icon
YeldhamDev Sep 25, 2021
14dcb97
Merge pull request #50378 from Razoric480/apply-edit-40
akien-mga Sep 25, 2021
044daf9
Remove duplicate WorkspaceEdit from LSP
Razoric480 Sep 25, 2021
1858c92
Merge pull request #53070 from Razoric480/apply-edit-fix-40
akien-mga Sep 25, 2021
c7f67da
Merge pull request #52855 from Calinou/engine-editor-hint-getter-only
akien-mga Sep 25, 2021
dd70daa
Fix GPUParticles3D generate AABB
CaptainProton42 Sep 25, 2021
1731030
Fix GPUParticles3D local_coords
CaptainProton42 Sep 25, 2021
eae7f1c
validate 'shortcut' in InputEventShortcut
LATRio Sep 25, 2021
1363fe3
Fix error when opening multiple debugger sessions
YeldhamDev Sep 25, 2021
79e33f8
Merge pull request #53058 from LATRio/52191
akien-mga Sep 26, 2021
84faf39
Merge pull request #53078 from YeldhamDev/debugger_style_fix
akien-mga Sep 26, 2021
53efc55
Fix minimum size of TreeItem
floppyhammer Sep 24, 2021
41e43e0
Merge duplicate branch conditions to one.
AnilBK Sep 26, 2021
082f924
Updated Tabs to not update excessively
e8newallm Sep 18, 2021
9359bee
Fix typo with example variable name in Dictionary docs, and fix error…
zacryol Sep 26, 2021
a402bf0
Fix tile size property
KoBeWi Sep 26, 2021
73668c5
Merge pull request #52824 from e8newallm/52680
akien-mga Sep 26, 2021
3f0fe0b
Fix LineEdit and TextEdit double-click and triple-click selection
jmb462 Sep 23, 2021
3221fb4
Merge pull request #52979 from jmb462/fix-lineedit-double-clic-selection
akien-mga Sep 26, 2021
8138280
Merge pull request #53091 from AnilBK/merge-duplicates
akien-mga Sep 26, 2021
f3e76a5
Fix GLTF light import
aaronfranke Sep 26, 2021
112985c
Reload kinematic shapes when changing PhysicsBody mode to Kinematic t…
BimDav Sep 27, 2021
3540e71
init_kinematic_utilities from the start for kinematic bodies
BimDav Sep 27, 2021
911c276
[macOS, sandbox] Add export option to embed and sign helper executables.
bruvzg Mar 31, 2021
4f4f73b
Merge pull request #53095 from KoBeWi/fix_them_tiles
groud Sep 27, 2021
2d08457
Merge pull request #47524 from bruvzg/macos_sandbox_helpers
akien-mga Sep 27, 2021
e96e268
[ENet] Fix server not correctly relaying peer disconnects.
Faless Sep 27, 2021
a0ca7a6
Merge pull request #53119 from Faless/net/4.x_enet_relay_fix
akien-mga Sep 27, 2021
b024d16
Parse UTF-8 when getting path from resource UID
timothyqiu Sep 27, 2021
140b54f
Fix TileMap layer loading
KoBeWi Sep 26, 2021
d090925
Fix Typo: Segement.
AnilBK Sep 27, 2021
4633f8c
Merge pull request #53121 from timothyqiu/resource-id-utf8
akien-mga Sep 27, 2021
1ae922a
Merge pull request #53122 from AnilBK/whats-segement-can-i-render-it
akien-mga Sep 27, 2021
ee238b2
Fix inverted error messages about null object
RandomShaper Sep 27, 2021
a984536
Merge pull request #53100 from KoBeWi/fix_them_tiles_2-layer_count_of…
groud Sep 27, 2021
8d2dedd
Merge pull request #53124 from RandomShaper/fix_inverted_error
akien-mga Sep 27, 2021
ab280de
Validate before passing indices to meshoptimizer
timothyqiu Sep 27, 2021
4122834
Merge pull request #53127 from timothyqiu/index-mod
akien-mga Sep 27, 2021
281d0bd
Merge pull request #53109 from aaronfranke/fix-gltf-light
akien-mga Sep 27, 2021
9e18106
Auto LOD fixes and improvements
JFonS Sep 7, 2021
27417c0
Merge pull request #53118 from BimDav/physicsbody_to_kinematic
pouleyKetchoupp Sep 27, 2021
62f8b0e
QuadMesh remove format ARRAY_FORMAT_INDEX
briansemrau Sep 27, 2021
0fa574c
Fix check for freed object during cast
RandomShaper Sep 27, 2021
321419d
Merge pull request #53141 from RandomShaper/fix_cast_freed_check
akien-mga Sep 27, 2021
30cf49e
Merge pull request #53134 from briansemrau/quadmesh-has-no-indices
akien-mga Sep 27, 2021
e2b58ef
Set dialog folder icon color
naeu Sep 27, 2021
11a49c2
Fix trim overrun width not being reset.
bruvzg Sep 27, 2021
dbb37e5
Fix inversed check inside register_singleton
Shatur Sep 27, 2021
5503059
Merge pull request #53145 from bruvzg/fix_trim_width_reset
akien-mga Sep 27, 2021
541701f
Merge pull request #53146 from naeu/fix_folder_icon
akien-mga Sep 27, 2021
8abd460
Merge pull request #53148 from Shatur/fix-register-singleton
akien-mga Sep 27, 2021
bf523a2
Improved logic for CharacterBody collision recovery depth
pouleyKetchoupp Sep 17, 2021
3bcf03c
Fixed typo in bone attachment warning
Duroxxigar Sep 27, 2021
7d53755
Fixes the normals of SphereMesh when the radius is different from 1
drcd1 Sep 23, 2021
1da948a
CSGPolygon fixes and features: Angle simplification, UV tiling distan…
jitspoe Sep 9, 2021
0623d36
Improve unregistering XR interfaces so we don't get crashes in GDExte…
BastiaanOlij Sep 28, 2021
4735a03
Merge pull request #53153 from Duroxxigar/fix-bone-attachment-typo
akien-mga Sep 28, 2021
8879efc
Merge pull request #52512 from jitspoe/master.csg_fixes_simplification
akien-mga Sep 28, 2021
a56e8f8
Merge pull request #53160 from BastiaanOlij/improve_xr_server_cleanup
akien-mga Sep 28, 2021
c89c287
Merge pull request #53001 from floppyhammer/fix-tree-item-width
akien-mga Sep 28, 2021
ed5267f
Merge pull request #53053 from LATRio/callable_in_thread_start
akien-mga Sep 28, 2021
e4cfcfc
Replace auto completion shortcut for mac
fabriceci Sep 28, 2021
cbdde9d
Fix access to render target texture for XR interfaces
BastiaanOlij Sep 20, 2021
60988a0
Merge pull request #52953 from nekomatata/fix-collision-recovery-depth
akien-mga Sep 28, 2021
cd57053
Merge pull request #53040 from pycbouh/docs-color-picker-and-button
akien-mga Sep 28, 2021
46607ec
Merge pull request #53064 from YeldhamDev/template_manager_mirror_icon
akien-mga Sep 28, 2021
0320532
Merge pull request #52864 from BastiaanOlij/xr_extension_return_buffers
BastiaanOlij Sep 28, 2021
97f0500
Merge pull request #53165 from fabriceci/autocompletion-shortcut-mac
akien-mga Sep 28, 2021
d18cbdf
Merge pull request #52481 from Faless/net/4.x_native_peers
Faless Sep 28, 2021
b197fc2
Force optimized builds for thirdparty Embree files
JFonS Sep 28, 2021
5aa099a
Merge pull request #53154 from drcd1/fix-sphere-normals
akien-mga Sep 28, 2021
60fee25
Apply delta in move and collide
fabriceci Sep 28, 2021
7fabbe2
Fix tree title column size minimum width
jmb462 Sep 28, 2021
32bf7c4
Sync to physics true by default for AnimatableBody
fabriceci Sep 28, 2021
4296539
Merge pull request #53072 from CaptainProton42/fix-gpuparticles3d-gen…
akien-mga Sep 28, 2021
3e18cc2
Add up/down keys to inc/dec val in spin slider
Razoric480 Sep 7, 2020
483b8a5
Merge pull request #53173 from jmb462/fix-tree-column-title-min-size
akien-mga Sep 28, 2021
9676651
Merge pull request #53166 from JFonS/force_embree_opt
akien-mga Sep 28, 2021
2cc2ade
4.0 fix atlas texture return null
boruok Sep 28, 2021
06b9ea1
Merge pull request #41855 from Razoric480/key_up_down_spin_slider
akien-mga Sep 28, 2021
0a3aa85
Merge pull request #53177 from fabriceci/sync-to-physics-true-animata…
akien-mga Sep 28, 2021
9556c3a
Merge pull request #53180 from boruok/4.0-fix-atlas-texture-return-null
akien-mga Sep 28, 2021
27b9b3e
Various tiles-related fixes
groud Sep 28, 2021
c38ef94
Merge pull request #53174 from fabriceci/apply-delta-move-and-collide
pouleyKetchoupp Sep 28, 2021
dd5f01e
Set stop on slope on by default on CharacterBody.
fabriceci Sep 28, 2021
c86ab40
Update C# RPC attributes to share new Any/Auth naming convention
ganondev Sep 26, 2021
f72419d
Merge pull request #53179 from fabriceci/stop-on-slope-on-by-default
pouleyKetchoupp Sep 28, 2021
6a9f374
Fix editor freeze when asigning Skeleton2D to Polygon2D
Geometror Sep 28, 2021
341b532
Merge pull request #52754 from nekomatata/dynamic-body-modes
pouleyKetchoupp Sep 29, 2021
fc9767a
Use functions defined in the their classes.
AnilBK Sep 29, 2021
50c0cee
Merge pull request #53186 from groud/tiles_fixes
akien-mga Sep 29, 2021
1bf0e87
Merge pull request #53106 from ganondev/cs-rpc-attribute-names
akien-mga Sep 29, 2021
ad63556
Merge pull request #53189 from AnilBK/use-class-specific-funcs
akien-mga Sep 29, 2021
23b51a1
HTML5: Fix minification error with Emscripten 1.39.9
akien-mga Sep 22, 2021
4fc246e
Merge pull request #52573 from e8newallm/Save_Scene-52078
akien-mga Sep 29, 2021
f410852
Merge pull request #52172 from kleonc/scene-tree-dock-ensure-single-s…
akien-mga Sep 29, 2021
2cd052f
Add tests for Translations
o01eg Sep 29, 2021
b1237b5
Merge pull request #52926 from akien-mga/js-acorn-emscripten-1.39.9
akien-mga Sep 29, 2021
1979266
Merge pull request #53062 from stebulba/4.0_undo_CloseCurve
akien-mga Sep 29, 2021
6c0f44c
Merge pull request #53000 from Chaosus/lineedit_expose_selection_methods
akien-mga Sep 29, 2021
475facb
Merge pull request #53204 from o01eg/test-translations-test-only
akien-mga Sep 29, 2021
82f7f2c
Fix crash in headless mode
timothyqiu Sep 29, 2021
e2e1a50
Merge pull request #52809 from selgesel/patch1
Faless Sep 29, 2021
9302b65
Implement override of get_message and get_plural_message
o01eg Sep 29, 2021
ea0a9e6
Merge pull request #52800 from akien-mga/gdscript-remove-exp_range
akien-mga Sep 29, 2021
4c1d2e9
Merge pull request #53199 from Geometror/fix-skeleton2d
akien-mga Sep 29, 2021
3db672c
Merge pull request #44670 from o01eg/test-translations
akien-mga Sep 29, 2021
7468dd6
Make LSP report _init instead of Object::new
Razoric480 Sep 26, 2021
9dd0d3f
Don't memcpy to nullptr even if length is zero
timothyqiu Sep 29, 2021
c1f5913
Merge pull request #53092 from Razoric480/lsp-report-_init
akien-mga Sep 29, 2021
991f4d8
GDScript: Fix assignment with operation for properties
vnen Sep 29, 2021
5e609d0
Merge pull request #53211 from timothyqiu/request-ub
akien-mga Sep 29, 2021
0276c2e
Fix const pointers types in docs and extension API.
Faless Sep 29, 2021
72c0770
GDScript: Don't allow builtin type names as identifiers
vnen Sep 29, 2021
bd573f8
Merge pull request #53215 from vnen/gdscript-property-assignment-op
akien-mga Sep 29, 2021
27d4e2f
Merge pull request #53216 from vnen/gdscript-builtin-type-not-id
akien-mga Sep 29, 2021
2fc31fd
Merge pull request #53217 from Faless/ext/fix_pointer_info
akien-mga Sep 29, 2021
f2caab4
Improve TileMap physics for moving platforms and conveyor belts like …
groud Sep 15, 2021
3c00594
[Fallback TextServer] Fix char to glyph conversion.
bruvzg Sep 29, 2021
7926d75
Fix TextOp setting to none when typing
Paulb23 Sep 29, 2021
ea54b61
Document how to use degrees with `sin()` and `cos()`
Calinou Sep 28, 2021
1e0fe9f
Fix doc for Dictionary.erase
timothyqiu Sep 29, 2021
5fe1857
Fix Platform Thread Override
lucypero Sep 25, 2021
d3c6395
Fix buffer overflow in 2D BVH
pouleyKetchoupp Sep 29, 2021
485eac3
radial fog fix
manueldun Sep 28, 2021
5ffda27
gltf export: Fix export of skeletons, skins and blend shapes.
lyuma Sep 4, 2021
4028583
Merge pull request #53044 from lucypero/thread_override
akien-mga Sep 29, 2021
7db3dba
Merge pull request #53178 from Calinou/doc-sin-cos-degrees
akien-mga Sep 29, 2021
0013d6f
Merge pull request #53114 from lyuma/export_skin_fixes
akien-mga Sep 29, 2021
1ab8f3f
Merge pull request #52724 from groud/improve_tilemap_physics
akien-mga Sep 29, 2021
e1f7e4e
Merge pull request #53221 from bruvzg/fix_fb_text_server
akien-mga Sep 29, 2021
86a2e10
Merge pull request #53196 from manueldun/radialFogFix
akien-mga Sep 29, 2021
92d88fd
Merge pull request #53223 from Paulb23/fix-autocomplete-trigger
akien-mga Sep 29, 2021
f91afeb
Merge pull request #53228 from timothyqiu/dict-erase
akien-mga Sep 29, 2021
ba65730
Rename RID's `getornull()` to `get_or_null()`
Calinou Sep 29, 2021
3f6ed10
Occlusion culling fixes
JFonS Sep 29, 2021
6e6f292
Fix AnimatableBody moving and colliding during the first frame
pouleyKetchoupp Sep 30, 2021
4a9a231
Merge pull request #53230 from nekomatata/fix-2d-bvh-overflow
akien-mga Sep 30, 2021
71f8b80
bullet: Sync with upstream 3.17
akien-mga Sep 29, 2021
b55fd93
Compile bullet with threasafe switch on
m4nu3lf Sep 28, 2021
b8c9282
Merge pull request #48299 from akien-mga/bullet-3.09
akien-mga Sep 30, 2021
41c1cfe
InputEventJoypadMotion::set_axis - reject invalid axis
LATRio Sep 30, 2021
f23b917
Clarify what the `Node.filename` property contains
Calinou Sep 30, 2021
ac7505e
Merge pull request #53227 from Calinou/rename-getornull
mhilbrunner Sep 30, 2021
70871c6
Merge pull request #53252 from Calinou/doc-node-filename
akien-mga Sep 30, 2021
bc0f5d3
Merge pull request #53251 from LATRio/53224
akien-mga Sep 30, 2021
e0f8410
Improved breakpoint gutter for CodeEdit.
EricEzaM Sep 29, 2021
6596c7b
Add TextFile support across the editor
Paulb23 Sep 23, 2021
998974f
Merge pull request #52874 from Calinou/doc-ease-smoothstep
akien-mga Sep 30, 2021
3a19400
Merge pull request #48685 from bruvzg/bundle_icon_4
akien-mga Sep 30, 2021
a662ca6
Merge pull request #53112 from EricEzaM/better-breakpoint-gutter
akien-mga Sep 30, 2021
5d6a98f
Merge pull request #53239 from nekomatata/fix-animatable-body-initial…
akien-mga Sep 30, 2021
213612b
Fix AtlasTexture get_data() crash
boruok Sep 30, 2021
50bb089
Merge pull request #52043 from Calinou/macos-use-big-sur-icon
akien-mga Sep 30, 2021
eec3f3e
Fix motion direction in slope for CharacterBody3D
pouleyKetchoupp Sep 24, 2021
bd411ae
Add latest changes added in the 3D version
fabriceci Sep 27, 2021
570cdc1
Rename Node's `filename` property to `scene_file_path` for clarity
Calinou Sep 30, 2021
5b7ec95
Merge pull request #53254 from Calinou/node-rename-filename
akien-mga Sep 30, 2021
f4bebc2
Document how to set up UPnP in a non-blocking manner
Calinou Apr 6, 2021
a201f30
Merge pull request #53259 from boruok/fix-atlas-texture-get_data-crash
akien-mga Sep 30, 2021
7f8e508
Merge pull request #51818 from MarianoGnu/gdscript2-enum-fixes
akien-mga Sep 30, 2021
43c7448
Merge pull request #53149 from fabriceci/port-move-and-slide-3D-new-c…
pouleyKetchoupp Sep 30, 2021
767bde8
Merge pull request #53197 from nekomatata/fix-motion-direction-in-slope
pouleyKetchoupp Sep 30, 2021
d2b8560
Revert "GdScript: Use reduced constant expression result when doing b…
akien-mga Sep 30, 2021
d0ec46b
Remove shape metadata from 2D physics server
pouleyKetchoupp Sep 30, 2021
c370b4c
Merge pull request #52544 from JFonS/lod_fixes
reduz Sep 30, 2021
7e8385f
Merge pull request #53245 from JFonS/occ_fixes2
akien-mga Sep 30, 2021
94b27eb
Merge pull request #47670 from Calinou/doc-upnp-non-blocking
mhilbrunner Sep 30, 2021
770bd61
Merge pull request #53076 from zacryol/dict-typo-fix
mhilbrunner Sep 30, 2021
810d8f0
Add an example on iterating an array backwards
Calinou May 1, 2020
1c0ae31
Merge pull request #53266 from nekomatata/remove-shape-metadata
pouleyKetchoupp Sep 30, 2021
3e1b630
Merge pull request #53025 from Paulb23/textfile-ux
akien-mga Sep 30, 2021
e4dfa69
Fix non-const iterators in const methods
AaronRecord Aug 9, 2021
c63b185
Use range iterators for `Map`
AaronRecord Aug 9, 2021
77721b3
Merge pull request #51409 from LightningAA/use-map-iterators
akien-mga Sep 30, 2021
3fa76df
Fix body stuck on descending platform
fabriceci Sep 30, 2021
663e480
Rename some elements of `Tabs`
YeldhamDev Sep 30, 2021
214bbfb
Implement bsearch for Vector and Packed*Array
mashumafi Sep 19, 2021
8dd8630
Fix property not shown in inspector when type is PACKED_COLOR_ARRAY
Geometror Oct 1, 2021
d46ac42
Fix angular velocity default value in TileSet
pouleyKetchoupp Oct 1, 2021
9543289
Merge pull request #53272 from fabriceci/bug-platform-ceiling
pouleyKetchoupp Oct 1, 2021
d1c2013
Merge pull request #53279 from nekomatata/fix-tilemap-angular-velocity
akien-mga Oct 1, 2021
a28f44f
Merge pull request #53277 from YeldhamDev/tabs_renaming
akien-mga Oct 1, 2021
b32f84d
Merge pull request #52850 from mashumafi/vector-bsearch
akien-mga Oct 1, 2021
df57aa6
Merge pull request #53278 from Geometror/fix-editor-property-array-color
akien-mga Oct 1, 2021
2e03527
[FontData] Fixes saving copy of the font source data, if it was creat…
bruvzg Oct 1, 2021
8be97e3
Merge pull request #53286 from bruvzg/fix_font_data_save
akien-mga Oct 1, 2021
4baddc1
Allow non-control Nodes to handle drag forwarding (e.g. Windows)
EricEzaM Jun 21, 2021
ad30b0a
Allow shortcuts to have any number of bindings. Updated UI as required.
EricEzaM Jun 21, 2021
e519ef3
Fixed drag and drop not respecting type on exported arrays.
EricEzaM Jul 24, 2021
6ed3e9c
Merge pull request #53208 from timothyqiu/headless-crash
akien-mga Oct 1, 2021
769691a
Merge pull request #51273 from EricEzaM/multiple-events-per-shortcut-…
akien-mga Oct 1, 2021
a7011fa
Merge pull request #52684 from Frixuu/master
akien-mga Oct 1, 2021
06c1b40
Merge pull request #38397 from Calinou/doc-range-backwards-example
akien-mga Oct 1, 2021
0c0b5c8
Implement TextServer GDExtension interface, remove TextServer GDNativ…
bruvzg Aug 27, 2021
928c002
Merge pull request #52192 from bruvzg/text_server_gdext
akien-mga Oct 1, 2021
93cb71c
Merge pull request #50805 from EricEzaM/fix-exported-arrays-drag-and-…
akien-mga Oct 1, 2021
2a920a2
Proposal-1778: Updating Transform.rotated() docs and test cases.
AlexanderPruss Nov 19, 2020
f34d67e
Merge branch 'Proposal-1778-NewRotationDoc' of github.com:AlexanderPr…
AlexanderPruss Oct 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/classes/Transform.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@
<argument index="1" name="phi" type="float">
</argument>
<description>
Rotates the transform around the given axis by the given angle (in radians), using matrix multiplication. The axis must be a normalized vector.
Returns a new transform created by rotating around the given axis by the given angle (in radians). The axis must be a normalized vector.
The axis of rotation goes through (0, 0, 0) in local space, so the transform's origin will also rotate. If you want to change the transform's orientation while keeping it in place, consider calling [code]rotated[/code] on the transform's basis instead.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While technically this should be implied from the current text, for clarity's sake we should mention "relative to the parent" somewhere here.

</description>
</method>
<method name="scaled">
Expand Down
46 changes: 45 additions & 1 deletion tests/test_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,55 @@
#ifndef TEST_MATH_H
#define TEST_MATH_H

#include "core/os/main_loop.h"
#include "core/math/math_defs.h"
#include "core/math/math_funcs.h"
#include "core/math/transform.h"
#include "core/os/os.h"

#include <math.h>
#include <stdio.h>

#include "tests/test_macros.h"

namespace TestMath {

MainLoop *test();
}

TEST_CASE("[Transform] Rotate around global origin") {
// Start with the default orientation, but not centered on the origin.
// Rotating should rotate both our basis and the origin.
Transform transform = Transform();
transform.origin = Vector3(0, 0, 1);

Transform expected = Transform();
expected.origin = Vector3(0, 0, -1);
expected.basis.set_axis(0, Vector3(-1, 0, 0));
expected.basis.set_axis(2, Vector3(0, 0, -1));

Transform rotated_transform = transform.rotated(Vector3(0, 1, 0), Math_PI);
REQUIRE(rotated_transform.is_equal_approx(expected));

// Make sure that the rotated transform isn't sharing references with the original transform.
REQUIRE(&rotated_transform.basis != &transform.basis);
REQUIRE(&rotated_transform.origin != &transform.origin);
Copy link
Contributor

@Xrayez Xrayez Nov 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the first REQUIRE is reasonable, the successive assertions depend on the previous one. Better do this:

Suggested change
Transform rotated_transform = transform.rotated(Vector3(0, 1, 0), Math_PI);
REQUIRE(rotated_transform.is_equal_approx(expected));
// Make sure that the rotated transform isn't sharing references with the original transform.
REQUIRE(&rotated_transform.basis != &transform.basis);
REQUIRE(&rotated_transform.origin != &transform.origin);
Transform rotated_transform = transform.rotated(Vector3(0, 1, 0), Math_PI);
REQUIRE(rotated_transform.is_equal_approx(expected));
// Make sure that the rotated transform isn't sharing references with the original transform.
CHECK(&rotated_transform.basis != &transform.basis);
CHECK(&rotated_transform.origin != &transform.origin);

This way, both "basis" and "origin" will be tested (without immediately exiting the test case if the first one fails).

Same for the test case below.

Also, not sure about referencing with &, is this required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, I'll change the latter REQUIREs to CHECKs.

As far as referencing with &, this may just be paranoia due to my lack of C++ experience. But technically the == operator can be overloaded, right?

Copy link
Contributor

@Xrayez Xrayez Nov 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking more closely now, in this case & will take a pointer, so this will always "falsely" succeed because this compares pointers rather than values, because as far as I know rotated_transform is a modified copy of transform, so & is not suitable in this case.

So this should rather be:

Suggested change
Transform rotated_transform = transform.rotated(Vector3(0, 1, 0), Math_PI);
REQUIRE(rotated_transform.is_equal_approx(expected));
// Make sure that the rotated transform isn't sharing references with the original transform.
REQUIRE(&rotated_transform.basis != &transform.basis);
REQUIRE(&rotated_transform.origin != &transform.origin);
Transform rotated_transform = transform.rotated(Vector3(0, 1, 0), Math_PI);
REQUIRE(rotated_transform.is_equal_approx(expected));
// Make sure that the rotated transform isn't sharing references with the original transform.
CHECK(rotated_transform.basis != transform.basis);
CHECK(rotated_transform.origin != transform.origin);

But technically the == operator can be overloaded, right?

Yes, this is done for a lot of existing core types in Godot, so usually you don't have to worry about this and just do equality checks. If those fail due to floating point accumulation, is_equal_approx is also implemented for built-in types.

Copy link
Contributor Author

@AlexanderPruss AlexanderPruss Nov 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the pointer memory addresses are what I wanted to check; I thought I could make sure that transform.rotated() returns an object that doesn't share important references with the old object. I.e. that the following is the case -

Transform transform = Transform();
Transform rotated = transform.rotated(...);
transform.origin.x += 1;
//rotated's origin should still be on the origin, not on (1,0,0)

But that's maybe not necessary, I think I'll just remove those assertions. Though in general, as a new Godot user, I'm not always clear on whether a function will modify the existing object or return a new object.

}

TEST_CASE("[Transform] Rotate in-place") {
// Start with the default orientation, centered on the origin.
// Rotating should rotate us around the origin, so the origin shouldn't change.
Transform transform = Transform();

Transform expected = Transform();
expected.basis.set_axis(0, Vector3(-1, 0, 0));
expected.basis.set_axis(2, Vector3(0, 0, -1));

Transform rotated_transform = transform.rotated(Vector3(0, 1, 0), Math_PI);
REQUIRE(rotated_transform.is_equal_approx(expected));
Copy link
Member

@aaronfranke aaronfranke Aug 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of the code in the test cases is very nice. But two things:

  • These need to go in a test_transform_3d.h file.
  • Why are you using REQUIRE when the other tests use CHECK_MESSAGE?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll move the code over into a new file and make sure it compiles after the renamings, and change REQUIRE to CHECK_MESSAGE. I'll keep the assertion the same.


// Make sure that the rotated transform isn't sharing references with the original transform.
REQUIRE(&rotated_transform.basis != &transform.basis);
REQUIRE(&rotated_transform.origin != &transform.origin);
}

#endif