summaryrefslogtreecommitdiffstats
path: root/scene/2d/camera_2d.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add "Game" editor for better runtime debuggingMichael Alexsander2024-10-301-0/+1
|
* Set clang-format `RemoveSemicolon` rule to `true`Adam Scott2024-10-251-2/+2
| | | | - Set clang-format `Standard` rule to `c++20`
* Fixed Timestep Interpolation: Fix behaviour on pauseRicardo Buring2024-07-071-0/+6
| | | | Co-authored-by: lawnjelly <lawnjelly@gmail.com>
* Update Camera2D gizmos when screen size changeskobewi2024-06-111-0/+16
|
* Fix Parallax2D fixed timestep interpolationRicardo Buring2024-05-261-1/+3
| | | | The camera_screen_center value was stale in case of interpolation.
* Fixed Typo in Camera 2D node's anchor modeBn-Fang2024-04-231-1/+1
| | | | Fixed the Camera 2D node's anchor mode descriptor from "Fixed TopLeft" to "Fixed Top Left"
* Fix negative value for position_smoothing_speed being allowed.ajreckof2024-04-041-2/+2
|
* Fixed Timestep Interpolation (2D)Ricardo Buring2024-03-231-16/+91
| | | | | | | Adds fixed timestep interpolation to the rendering server (2D only). Switchable on and off with a project setting (default is off). Co-authored-by: lawnjelly <lawnjelly@gmail.com>
* Add new Parallax2D nodemarkdibarry2024-03-031-2/+4
|
* Ensure Camera2D scroll is updated on transform like 3.xDanni2023-11-051-1/+1
|
* Fix screen center position returned for rotated Camera2Dkleonc2023-10-161-3/+3
|
* Fix Camera2D is not working inside EditorPluginMounir Tohami2023-08-131-32/+45
|
* Fix Camera2D crash when edited scene root is nullAdam Scott2023-07-181-1/+1
|
* Merge pull request #73897 from TheSecondReal0/camera-line-widthYuri Sizov2023-03-251-3/+3
|\ | | | | Draw Camera2D outlines as 2 point primitives instead of 4 (consistent with how origin is drawn in 2D editor)
| * Draw Camera2D outlines as 2 point primitives instead of 4Asa Sprow2023-03-231-3/+3
| |
* | Fix Camera2D position smoothing properties not being groupedMarcus Elg2023-03-031-7/+7
| |
* | Fix custom viewports in Camera2Dkobewi2023-02-241-4/+8
|/
* Fix camera reparentingkobewi2023-02-101-0/+6
|
* Fix Camera2D crasheskobewi2023-02-011-3/+3
|
* Merge pull request #65698 from KoBeWi/cameramanRémi Verschelde2023-01-311-39/+39
|\ | | | | | | Rework how current Camera2D is determined
| * Rework how current Camera2D is determinedkobewi2022-12-021-39/+39
| |
* | Hide clip_children for non-drawn CanvasItemsNinni Pipping2023-01-301-0/+1
| |
* | One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* | Fix for 2D viewport not updating in the editor when the camera movesRichard Adenling2022-12-061-2/+5
|/ | | | | | | This fixes a problem with 2D viewports not taking the camera position into consideration when previewed in the editor. Fixes #40441
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
|
* Rename Camera2D's `smoothing` to `position_smoothing`Micky2022-10-111-23/+23
| | | | | | | | | | For Camera2D: `smoothing_enabled` -> `position_smoothing_enabled` `set_enable_follow_smoothing` -> `set_position_smoothing_enabled` `is_follow_smoothing_enabled` -> `is_position_smoothing_enabled` `smoothing_speed` -> `position_smoothing_speed` `set_follow_smoothing` -> `set_position_smoothing_speed` `get_follow_smoothing` -> `get_position_smoothing_speed`
* Add rotation smoothing to Camera2DLuis Lopez2022-10-041-8/+54
| | | | | | | | Camera2D has follow smoothing to interpolate towards a target position, but no rotation smoothing to align with the target rotation. This adds rotation smoothing directly into the Camera2D API by having two new properties: - `rotation_smoothing_enabled` - `rotation_smoothing_speed`
* Reverse Camera2D.`rotating` to `ignore_rotation`Micky2022-09-211-9/+9
| | | | | | `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 #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`
* | Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-7/+7
|/ | | | | | | | | | 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`.
* Make `_validate_property` a multilevel methodYuri Sizov2022-08-221-3/+3
|
* Ensure changes to Camera2D's limits don't affect smoothed_camera_posMarcel Admiraal2022-07-281-0/+2
|
* When Camera2D enters tree, ensure first update is not lostMarcel Admiraal2022-07-281-1/+1
|
* Update camera position when updating camera limitMarcel Admiraal2022-07-171-1/+1
|
* Add Vector2/3 linking to more propertiesFireForge2022-06-141-1/+1
| | | | | | | | | | - Camera2D.zoom - CanvasLayer.scale - ParallaxBackground.scroll_base_scale - ParallaxLayer.motion_scale - Polygon2D.texture_scale - BaseMaterial3D.uv1_scale - BaseMaterial3D.uv2_scale
* Add suffixes to all nodes and resourcesFireForge2022-06-111-6/+6
|
* Make `{call,set,notify}_group()` immediate by defaultHugo Locurcio2022-05-051-3/+3
| | | | | | | This results in less surprising behavior out of the box. Internal usages were modified to keep the existing behavior identical there.
* Merge pull request #57392 from madmiraal/implement-3888Rémi Verschelde2022-03-141-9/+10
|\
| * Invert Camear2D zoom to make it intuitiveMarcel Admiraal2022-01-311-9/+10
| |
* | Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde2022-02-151-13/+5
| |
* | Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-0/+1
|/
* Rename Project Window width and height settings to match their functionMarcel Admiraal2022-01-041-1/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix condition on 'jump to limits' logicEric2021-11-171-1/+1
| | | | This is a fix for: #54856
* Merge pull request #54167 from ↵Rémi Verschelde2021-11-161-0/+1
|\ | | | | | | brunosxs/fix-game-crash-when-sending-a-notification-from-a-camera-class
| * Fixes a game crash caused by instantiating Camera2D and sending a ↵BrunoSXS2021-10-231-0/+1
| | | | | | | | notification from it before adding it to the tree.
* | Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`Hugo Locurcio2021-11-031-1/+1
|/ | | | | This is consistent with other constants that include `NO`, such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
* Add Get Center Method for Rect2/Rect2i and AABB.Anilforextra2021-09-211-1/+1
|
* fixed camera2d's "current" property getting reset when switching scenesThreeRhinosInAnElephantCostume2021-08-191-0/+1
|