summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2022-09-16Merge pull request #65148 from Mickeon/animated-sprite-negative-speed-scaleRémi Verschelde
Allow negative `speed_scale` in AnimatedSprite2D & 3D
2022-09-13Allow negative `speed_scale` in AnimatedSprite2D & 3DMicky
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.
2022-09-13Merge pull request #65591 from MewPurPur/area-overlapping-functionRémi Verschelde
Implement `Area[2D/3D].has_overlapping_[bodies/areas]`
2022-09-12Don't store frame of playing AnimatedSpritekobewi
2022-09-12Merge pull request #64155 from Mickeon/sprite-3d-backwards-speed-scaleRémi Verschelde
2022-09-10Implement Area.has_overlapping_*VolTer
2022-09-09Harmonise AnimatedSprite3D and its 2D counterpartMicky
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)
2022-09-09Merge pull request #64394 from smix8/navigation_obstacles_reparent_4.xRémi Verschelde
Fix NavigationObstacle 2D/3D (re)parent issues
2022-09-07Remove / Replace old Navigation Debug Visualizationsmix8
- removes / replaces leftovers from old navigation debug code - cleanes SceneTree and ProjectSettings from old navigation debug
2022-09-07handled edge case where navigation_link_2d is outside of the tree when ↵Trashtalk
calling _edit_get_rect()
2022-09-06Merge pull request #64661 from Mickeon/rename-tilemap-worldRémi Verschelde
Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`
2022-09-06Merge pull request #64880 from Mickeon/rename-camera-positionRémi Verschelde
Rename Camera2D's `*_screen_center` and `*_position` to `get_screen_center_position` and `get_target_position`
2022-09-05Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`Micky
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.
2022-09-05Fix AudioStreamPlayer not resuming after returning to SceneTreeMicky
2022-09-02Rename `or_lesser` range property hint to `or_less`Hugo Locurcio
"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.
2022-09-02fixed and optimized Area2/3D get_overlapping_bodies/areasVoid
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
2022-09-02Add `is_zero_approx` methods to `Vector2`, `3`, and `4`Jonathan Nicholl
2022-09-02Fix build after merge of #63479Rémi Verschelde
2022-09-01Merge pull request #64198 from Geometror/add-bitmap-testsRémi Verschelde
2022-09-01Merge pull request #63479 from DarkKilauea/nav-linkRémi Verschelde
2022-09-01Refactor BitMap and add testsHendrik Brucker
Co-authored-by: Resul Çelik <resul_celik@hotmail.com>
2022-08-30Rename Curve/Curve2D/Curve3D/Gradient `interpolate()` to `sample()`Hugo Locurcio
"sampling" is a more accurate term than "interpolating" for what's happening when using that function.
2022-08-30Fix build issue after #64377 and #64701Rémi Verschelde
2022-08-30Merge pull request #64377 from Mickeon/rename-canvas-redrawRémi Verschelde
Rename `CanvasItem.update()` to `queue_redraw()`
2022-08-30Fix GPUParticles2D ignoring AtlasTexture regionHendrik Brucker
2022-08-29Rename `CanvasItem.update()` to `queue_redraw()`Micky
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`.
2022-08-29Expose input interaction virtual functions in CollisionObjectrafallus
2022-08-26Added node for Navigation linksJosh Jones
2022-08-26Merge pull request #64367 from Mickeon/rename-var-to-strRémi Verschelde
Rename `str2var` to `str_to_var` and similar
2022-08-26Merge pull request #64894 from fabriceci/remove-dynamic-bodies-nameRémi Verschelde
2022-08-26Rename `str2var` to `str_to_var` and similarMicky
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`
2022-08-26Easier setting properties of last TileMap layerkobewi
2022-08-26Restore RigidBody2/3D, SoftBody names in physicsfabriceci
2022-08-26Rename Camera2D's `screen_center` and `*_position`Micky
`get_camera_screen_center` -> `get_screen_center_position` `get_camera_position` -> `get_target_position`
2022-08-26Merge pull request #54646 from jmb462/fix-animatedsprite-animation-listRémi Verschelde
Fix AnimatedSprite2D & 3D animation list in inspector
2022-08-26Rename ParticlesMaterial to ParticleProcessMaterialMicky
Also affects their file names, related classes and documentation.
2022-08-26Fix AnimatedSprite2D & 3D animation list in inspectorjmb462
2022-08-25Merge pull request #64804 from Mickeon/rename-path-progressRémi Verschelde
2022-08-25Merge pull request #64354 from Mickeon/rename-navigation-distanceRémi Verschelde
2022-08-25Merge pull request #64824 from Mickeon/rename-polygon-invertRémi Verschelde
2022-08-25Shorten variable names for moving platforms in CharacterBodyfabriceci
2022-08-24Improves the API for monitoring contacts in RigidDynamicBodyfabriceci
2022-08-24Rename Polygon2D.`invert_enable` to end with "d"Micky
Polygon2D.`invert_enable` -> `invert_enabled` Also affects the setters and getters, which are now named in full instead of cutting "enabled" off. Updates old leftover documentation slightly, as well.
2022-08-24Merge pull request #64370 from Mickeon/rename-marker-nodeRémi Verschelde
Rename Position* nodes to Marker*
2022-08-24Merge pull request #64009 from KoBeWi/arrayy_lmaoRémi Verschelde
Replace Array return types with TypedArray (part 2)
2022-08-24Rename PathFollow's `offset`s to `progress` & `progress_ratio`Micky
Applies for both PathFollow2D and PathFollow3D
2022-08-23Replace Array return types with TypedArray 2kobewi
2022-08-23Rename Position* nodes to Marker*Micky
- Position2D -> Marker2D - Position3D -> Marker3D Also changes their respective file names.
2022-08-23Rename properties unnecessarily using slash (`/`) in their namesRémi Verschelde
This is a legacy of Godot 2 days before the inspector had support for groups. "Properties" with a slash in their name can't be accessed from script unless using `set()`/`get()` so they were not actual properties as far as script languages are concerned. Part of #17558.
2022-08-22Replace Array return types with TypedArraykobewi