summaryrefslogtreecommitdiffstats
path: root/scene/2d
Commit message (Collapse)AuthorAgeFilesLines
* Improve consistancy of NavigationRegion settersJosh Jones2022-09-212-8/+30
|
* Merge pull request #66183 from KoBeWi/ARE_YOU_READYRémi Verschelde2022-09-211-1/+1
|\ | | | | | | Set scene tiles' position before adding them
| * Set scene tiles' position before adding themkobewi2022-09-211-1/+1
| |
* | Merge pull request #64359 from Mickeon/rename-camera-rotatingRémi Verschelde2022-09-212-12/+12
|\ \ | | | | | | | | | Reverse Camera2D.`rotating` to `ignore_rotation`
| * | Reverse Camera2D.`rotating` to `ignore_rotation`Micky2022-09-212-12/+12
| |/ | | | | | | | | | | `rotating` is misleading, as Camera2D is affected by `rotation` and `global_rotation` like any other Node2D Updates description in the docs, as well.
* | Merge pull request #65828 from rburing/body_state_sync_callableRémi Verschelde2022-09-211-13/+3
|\ \ | |/ |/| | | make `body_set_state_sync_callback` take a `Callable`
| * PhysicsServer2D and PhysicsServer3D: make body_set_state_sync_callback take ↵Ricardo Buring2022-09-151-13/+3
| | | | | | | | | | | | a Callable Prefer Callable to a C-style callback. This is helpful for GDExtension.
* | Merge pull request #66112 from Zylann/get_configuration_warnings_psaRémi Verschelde2022-09-1944-66/+66
|\ \ | | | | | | | | | Change return type of `get_configuration_warnings` to `PackedStringArray`
| * | Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron2022-09-1944-66/+66
| | |
* | | Turn on recovery as collisions only for floor snapping as this leads to ↵fabriceci2022-09-181-5/+2
|/ / | | | | | | unwanted behaviour for other surface than the floor.
* | Fix outdated warning in AnimatedSprite2DMicky2022-09-181-1/+1
| |
* | Merge pull request #65931 from ↵Rémi Verschelde2022-09-182-8/+8
|\ \ | | | | | | | | | | | | | | | fabriceci/add-recovery-as-collision-in-low-level-methods Add recovery_as_collision in move_and_collide/test_move
| * | Add recovery_as_collision in move_and_collide/test_movefabriceci2022-09-172-8/+8
| | |
* | | Merge pull request #58567 from madmiraal/fix-26470Rémi Verschelde2022-09-183-11/+7
|\ \ \ | |/ / |/| | | | | Remove ParallaxLayer's invalid dependence on screen_offset
| * | Remove ParallaxLayer's invalid dependence on screen_offsetMarcel Admiraal2022-02-263-11/+7
| | |
* | | Merge pull request #65148 from Mickeon/animated-sprite-negative-speed-scaleRémi Verschelde2022-09-162-28/+29
|\ \ \ | |_|/ |/| | | | | Allow negative `speed_scale` in AnimatedSprite2D & 3D
| * | Allow negative `speed_scale` in AnimatedSprite2D & 3DMicky2022-09-132-28/+29
| | | | | | | | | | | | | | | | | | | | | If the `speed_scale` is set to a negative value, the animation plays in reverse. The second parameter of `play()` still reverses as before. if `speed_scale` and the second parameter of `play()` is true, the animation plays forward. Also updates the documentation to better describe the pausing and playing behaviour.
* | | Merge pull request #65591 from MewPurPur/area-overlapping-functionRémi Verschelde2022-09-132-0/+16
|\ \ \ | | | | | | | | | | | | Implement `Area[2D/3D].has_overlapping_[bodies/areas]`
| * | | Implement Area.has_overlapping_*VolTer2022-09-102-0/+16
| | | |
* | | | Don't store frame of playing AnimatedSpritekobewi2022-09-121-0/+8
| |/ / |/| |
* | | Merge pull request #64155 from Mickeon/sprite-3d-backwards-speed-scaleRémi Verschelde2022-09-121-26/+32
|\ \ \
| * | | Harmonise AnimatedSprite3D and its 2D counterpartMicky2022-09-091-26/+32
| |/ / | | | | | | | | | | | | | | | | | | | | | Add the following properties to AnimatedSprite3D: - `backwards` parameter in `play()`; - `speed_scale`. Both classes' internals are more similar, down to the line spacings. They've also been updated to be clearer and less inconsistent (e.g. `!frames.is_valid()` -> `frames.is_null()`, use SceneStringNames instead of CoreStringNames, rename the internal _queue_update to _queue_redraw)
* | | Merge pull request #64394 from smix8/navigation_obstacles_reparent_4.xRémi Verschelde2022-09-092-11/+48
|\ \ \ | |/ / |/| | Fix NavigationObstacle 2D/3D (re)parent issues
| * | Fix NavigationObstacle 2D/3D (re)parent issuessmix82022-08-142-11/+48
| | | | | | | | | | | | | | | Fixes (re)parent issues with NavigationObstacle 2D and 3D (same as NavigationAgents). Also adds the option from NavigationAgents to override the default navigation map.
* | | Remove / Replace old Navigation Debug Visualizationsmix82022-09-071-9/+8
| | | | | | | | | | | | | | | - removes / replaces leftovers from old navigation debug code - cleanes SceneTree and ProjectSettings from old navigation debug
* | | handled edge case where navigation_link_2d is outside of the tree when ↵Trashtalk2022-09-071-0/+4
| | | | | | | | | | | | calling _edit_get_rect()
* | | Merge pull request #64661 from Mickeon/rename-tilemap-worldRémi Verschelde2022-09-062-48/+48
|\ \ \ | | | | | | | | | | | | Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`
| * | | Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`Micky2022-09-052-48/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For both TileMap and GridMap: - `world_to_map` -> `local_to_map` - `map_to_world` -> `map_to_local` Also changes any mention of "world" in this context to "local" to avoid future confusion. Finally, updates the docs of both methods for consistency. In particular, adding a note on how to convert the returned values from local to global coordinates and vice versa.
* | | | Merge pull request #64880 from Mickeon/rename-camera-positionRémi Verschelde2022-09-061-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | Rename Camera2D's `*_screen_center` and `*_position` to `get_screen_center_position` and `get_target_position`
| * | | | Rename Camera2D's `screen_center` and `*_position`Micky2022-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | `get_camera_screen_center` -> `get_screen_center_position` `get_camera_position` -> `get_target_position`
* | | | | Fix AudioStreamPlayer not resuming after returning to SceneTreeMicky2022-09-051-1/+6
| |/ / / |/| | |
* | | | Rename `or_lesser` range property hint to `or_less`Hugo Locurcio2022-09-026-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | "less" should be used for quantity, rather than "lesser". Existing scripts that use `or_lesser` in `_get_property_list()` will need to be updated to account for this change.
* | | | fixed and optimized Area2/3D get_overlapping_bodies/areasVoid2022-09-021-10/+10
| | | | | | | | | | | | | | | | fixed a type and made it so area3d get_overlapping_x is similar to its counterpart func in area2d so that it uses TypedArray instead of Array and ERR_FAIL_COND_V_MSG instead of no message, also minimized array resize calls
* | | | Add `is_zero_approx` methods to `Vector2`, `3`, and `4`Jonathan Nicholl2022-09-021-5/+5
| | | |
* | | | Fix build after merge of #63479Rémi Verschelde2022-09-021-3/+3
| | | |
* | | | Merge pull request #64198 from Geometror/add-bitmap-testsRémi Verschelde2022-09-011-1/+1
|\ \ \ \
| * | | | Refactor BitMap and add testsHendrik Brucker2022-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Resul Çelik <resul_celik@hotmail.com>
* | | | | Merge pull request #63479 from DarkKilauea/nav-linkRémi Verschelde2022-09-012-0/+372
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Added node for Navigation linksJosh Jones2022-08-262-0/+372
| | | | |
* | | | | Rename Curve/Curve2D/Curve3D/Gradient `interpolate()` to `sample()`Hugo Locurcio2022-08-303-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | | "sampling" is a more accurate term than "interpolating" for what's happening when using that function.
* | | | | Fix build issue after #64377 and #64701Rémi Verschelde2022-08-301-1/+1
| | | | |
* | | | | Merge pull request #64377 from Mickeon/rename-canvas-redrawRémi Verschelde2022-08-3023-140/+140
|\ \ \ \ \ | | | | | | | | | | | | Rename `CanvasItem.update()` to `queue_redraw()`
| * | | | | Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-2923-140/+140
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* | | | | Fix GPUParticles2D ignoring AtlasTexture regionHendrik Brucker2022-08-302-6/+34
| | | | |
* | | | | Expose input interaction virtual functions in CollisionObjectrafallus2022-08-292-0/+8
|/ / / /
* | | | Merge pull request #64367 from Mickeon/rename-var-to-strRémi Verschelde2022-08-264-8/+8
|\ \ \ \ | | | | | | | | | | Rename `str2var` to `str_to_var` and similar
| * | | | Rename `str2var` to `str_to_var` and similarMicky2022-08-264-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`
* | | | | Merge pull request #64894 from fabriceci/remove-dynamic-bodies-nameRémi Verschelde2022-08-267-162/+162
|\ \ \ \ \
| * | | | | Restore RigidBody2/3D, SoftBody names in physicsfabriceci2022-08-267-162/+162
| | | | | |
* | | | | | Easier setting properties of last TileMap layerkobewi2022-08-261-2/+20
|/ / / / /