summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2021-05-02TileMap::world_to_map Ensure half offset is added according to the returned ↵kleonc
value Decide whether half offset should be added based on the value used for calculating the return value of this method.
2021-04-30Prevent setting too big or too small Collision Mask and LayerRafał Mikrut
2021-04-27Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde
We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
2021-04-27Merge pull request #47960 from smix8/issue_47334_navagent2d_target_reachedRémi Verschelde
2021-04-27put distance check to target into functionsmix8
put distance check to target into function
2021-04-23Merge pull request #47485 from rafallus/fix/rigidbody-crashRémi Verschelde
Fix crash on RigidBody _direct_state_changed
2021-04-23Merge pull request #48030 from smix8/issue_47337_broken_navagent2d_callbackRémi Verschelde
2021-04-22Unexpose _direct_state_changed in PhysicsBodyrafallus
Removed _direct_state_changed bindings Affects 2D and 3D nodes Callbacks now use Callable Tests were changed accordingly
2021-04-20Move collision layer and mask into CollisionObject.Marcel Admiraal
2021-04-20Merge pull request #47991 from LightningAA/regroup-area-inspector-4.0Rémi Verschelde
`Area[X]D`: Put physics override parameters in their own group and document that areas can be used to influence audio
2021-04-20Fix broken NavigationAgent2D collision avoidance callbackssmix8
Fix broken NavigationAgent2D collision avoidance callbacks
2021-04-18Put physics override parameters in their own group and document that areas ↵Lightning_A
can be used to influence audio
2021-04-16Fix NavigationAgent2D not emitting "target_reached" Signal reliablysmix8
Fix NavigationAgent2D not emitting "target_reached" Signal reliably
2021-04-11Use Array for node configuration warningsNathan Franke
Previously, the warnings were passed as a string and delimitation of which were hard coded at each implementation.
2021-04-05Re-allow playing AnimatedSprite2D without framesRémi Verschelde
Fixes #47578, partial revert of #47064.
2021-04-05Fix crashes in *_input functionsRafał Mikrut
2021-03-23Merge pull request #45571 from aaronfranke/node2d-real_tRémi Verschelde
Use real_t in 2D nodes
2021-03-20Merge pull request #47001 from madmiraal/rename-sprite_2d-region_enabledRémi Verschelde
Rename Sprite.region_enabled getter and setter methods to match properties
2021-03-19Use real_t in non-physics 2D nodesAaron Franke
2021-03-17Merge pull request #47064 from ↵Rémi Verschelde
jmb462/fix-crash-in-uninitialized-AnimatedSprite2d-play Fix crash on calling play() in a uninitialized AnimatedSprite2D (Fix #46013)
2021-03-17Fix crash on calling play() in a uninitialized AnimatedSprite2Djmb462
When AnimatedSprite2D::play() was called before SpriteFrames has been initialized, a crach occurred (issue #46013). Modification : An error message on null check test has been added to prevent crash. Fix #46013.
2021-03-17Merge pull request #47024 from groud/navigationRémi Verschelde
Allow Navigation to be more flexible
2021-03-16Move SpriteFrames to its own file in the resources folderAaron Franke
2021-03-15Allow Navigation to be more flexibleGilles Roudière
2021-03-14Rename Sprite.region_enabled getter and setter to match propertiesMarcel Admiraal
Also renames Sprite2D.region_filter_clip property and its setter to region_filter_clip_enabled and set_region_filter_clip_enabled.
2021-03-12Fixes small typos and grammar correctionAnshul7sp1
2021-03-10Implement Navigation layersGilles Roudière
2021-03-10Remove Navigation2D/3D nodes, and move the navigation map to the world resourceGilles Roudière
2021-03-07Merge pull request #46643 from YeldhamDev/hide_all_the_thingsRémi Verschelde
Hide more options of disabled properties
2021-03-05add responsive arrows when the size is very small + fix a regression: ↵fabriceci
missing a translation on the line
2021-03-05Highlight collision, correct the size and make the arrow a bit less thick ↵fabriceci
for low-res game
2021-03-04Merge pull request #46668 from nekomatata/fix-errors-polygon-2dRémi Verschelde
Fix errors with invalid CollisionPolygon2D
2021-03-04Fix errors with invalid CollisionPolygon2DPouleyKetchoupp
Fixed internal errors when the shape is invalid and made warnings more descriptive.
2021-03-03Hide more options of disabled propertiesMichael Alexsander
2021-03-03Merge pull request #46578 from nekomatata/fix-joint-remove-body-regressionRémi Verschelde
Fix Joint2D/Joint3D node path reset on scene switch
2021-03-02Fix Joint2D/Joint3D node path reset on scene switchPouleyKetchoupp
When one of the bodies exited the tree, the corresponding node path was reset instead of just resetting the joint from the physics server. That was causing the node path to be reset on scene switch when one of the bodies is under the joint in the scene tree.
2021-03-02Merge pull request #36065 from YeldhamDev/camera2d_helper_editor_onlyRémi Verschelde
Make Camera2D's editor helper code only be compiled on editor builds
2021-03-02Hide extra options from various nodes if they're not enabledMichael Alexsander
2021-03-01Make Camera2D's editor helper code only be compiled on editor buildsMichael Alexsander
2021-02-28Refactored cpu_particles_2d.cpp _notification MethodKyle
Refactors the _notification method in cpu_particles_2d.cpp to use a switch statement for readability and to bring it inline with other classes like node.cpp and timer.cpp.
2021-02-24Use a more specific type for Area2D/3D body signalsAaron Franke
2021-02-21Line2D::set_point_position Fail if passed index is out of boundskleonc
2021-02-19Merge pull request #46191 from reduz/refactor-process-modeRémi Verschelde
Refactor Process Mode
2021-02-19Merge pull request #44737 from KoBeWi/touch_shape_screen_centered_buttonRémi Verschelde
Fix shape_centered property in TouchScreenButton
2021-02-18Refactor Process Modereduz
Implements https://github.com/godotengine/godot-proposals/issues/1835#issuecomment-727186192 * PauseMode is now ProcessMode, containing the following states: ``` PROCESS_MODE_INHERIT, // same as parent node PROCESS_MODE_NORMAL, // process only if not paused PROCESS_MODE_PAUSE_ONLY, // process only if paused PROCESS_MODE_ALWAYS, // process always PROCESS_MODE_DISABLED, // never process ``` * NOTIFICATION_PAUSED and NOTIFICATION_UNPAUSED are received effectively when the node is paused and unpaused (not any longer when pause mode is set in SceneTree). * Renamed some nodes that used ProcessMode/process_mode to specify a callback type to ProcessCallback to avoid clashes.
2021-02-18Merge pull request #41644 from ↵Rémi Verschelde
Eoin-ONeill-Yokai/collision_2d_shape_visualization_fix CollisionShape2D 'Disabled' Visualization Correction
2021-02-18Modernize atomicsPedro J. Estébanez
- Based on C++11's `atomic` - Reworked `SafeRefCount` (based on the rewrite by @hpvb) - Replaced free atomic functions by the new `SafeNumeric<T>` - Replaced wrong cases of `volatile bool` by the new `SafeFlag` - Platform-specific implementations no longer needed Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2021-02-18Merge pull request #46151 from ellenhp/fix_spatial_player_playRémi Verschelde
Fix a pop on play() in AudioStreamPlayer2D and 3D
2021-02-17Fix pops in play() of both spatial audio playersEllen Poe
2021-02-14Return setseek position if one exists in get_playback_position.Ellen Poe