summaryrefslogtreecommitdiffstats
path: root/scene/2d
Commit message (Collapse)AuthorAgeFilesLines
* Properties for move_and_slide and remove move_and_slide_with_snapPouleyKetchoupp2021-06-042-32/+116
| | | | | | | - snap property to replace move_and_slide_with_snap() - floor_max_angle, stop_on_slope, infinite_inertia, max_slides, up_direction properties to replace arguments from move_and_slide() - up direction now defaults to Vector3.UP and Vector2.UP
* KinematicBody split between new CharacterBody and PhysicsBodyPouleyKetchoupp2021-06-046-254/+209
| | | | | | | | | | | PhysicsBody now has methods move_and_collide/test_move and needed properties for these methods: safe margin, locked axes (3D only). Moved collision_exceptions from StaticBody to PhysicsBody for 3D (same as 2D, and conforms to documentation). RigidBody doesn't have test_motion method anymore, it's now redundant with PhysicsBody.test_move.
* Rename Transform to Transform3D in coreAaron Franke2021-06-031-4/+4
|
* Merge pull request #49024 from groud/restore_tilemap_show_debugRémi Verschelde2021-06-012-50/+59
|\ | | | | Restore TileMap's debug collision shapes and add navigation.
| * Restore a way to show collsion/navigation on TileMap.Gilles Roudière2021-05-252-50/+59
| | | | | | | | Also remove an unused function.
* | Tweak Camera2D editor line colors for better visibilityHugo Locurcio2021-05-271-6/+3
| | | | | | | | | | | | | | | | | | The new color for screen drawing was chosen to be easier to distinguish from the 2D viewport limits. This also makes lines less opaque when the Camera2D has the Current property enabled. The increased line width is enough to spot the camera easily, and the increased opacity on top of that felt obnoxious.
* | Merge pull request #48955 from Calinou/editor-tweak-property-hintsRémi Verschelde2021-05-251-2/+2
|\ \ | | | | | | Tweak dozens of editor property hints for consistency
| * | Tweak dozens of editor property hints for consistencyHugo Locurcio2021-05-251-2/+2
| | | | | | | | | | | | | | | | | | - Update Viewport MSAA property hints to match the currently exposed values. - Add some performance hints to property hints.
* | | Merge pull request #49033 from groud/fix_deprecated_noRémi Verschelde2021-05-241-0/+7
|\ \ \ | | | | | | | | Fixes deprecated=no compilation option
| * | | Fixes deprecated=no compilation optionGilles Roudière2021-05-241-0/+7
| | |/ | |/|
* | | Merge pull request #48894 from reduz/gpu-particles-2d-2Rémi Verschelde2021-05-242-2/+228
|\ \ \ | |/ / |/| | Support for 2D particles to collide against SDF
| * | Support for 2D particles to collide against SDFreduz2021-05-232-2/+228
| |/ | | | | | | | | -Added SDF collision support for 2D particles -Changed the SDF generation to be fully signed
* / Change frame_coords to Vector2ikobewi2021-05-232-9/+9
|/
* Implement scenes tiles in TileMapsGilles Roudière2021-05-202-15/+18
|
* Merge pull request #42742 from madmiraal/fix-12215Rémi Verschelde2021-05-184-24/+36
|\ | | | | Return RID instead of Object id in area-body_shape_entered-exited signals.
| * Return RID instead of Object id in area-body_shape_entered-exited signals.Marcel Admiraal2021-03-064-24/+36
| |
* | Area: Uncap the range for gravity and change the slider hintsAaron Franke2021-05-181-1/+1
| |
* | Merge pull request #36263 from Calinou/increase-default-2d-gravityRémi Verschelde2021-05-182-2/+2
|\ \
| * | Increase the default 2D gravity to 980.0Hugo Locurcio2021-05-052-2/+2
| | | | | | | | | | | | | | | | | | This makes 2D RigidBody physics feel less floaty out of the box. This closes https://github.com/godotengine/godot-proposals/issues/98.
* | | Merge pull request #39976 from aaronfranke/tilemap-vec2iRémi Verschelde2021-05-132-4/+4
|\ \ \ | | | | | | | | Update TileMap to use Vector2i
| * | | Update TileMap to use Vector2i instead of two intsAaron Franke2021-05-072-4/+4
| | | |
* | | | Fixes missng 2D engine bitsreduz2021-05-113-11/+41
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | -Mesh2D now works -MultiMesh2D now works -Polygon2D now works -Added hooks for processing 2D particles -Skeleton2D now works 2D particles still not working, but stuff needed for it is now implemented.
* / / Rework the TileSet resource and TileMap nodes:Gilles Roudière2021-05-072-1615/+1454
|/ / | | | | | | | | | | | | | | | | | | - Move most properties from TileMap to TileSet, - Make TileSet more flexible, supporting more feature (several collision layers, etc...), - Fusion both the TileMap and TileSet editor, - Implement TileSetSources, and thus a new way to index tiles in the TileSet, - Rework the TileSet and TileMap editors completely, - Implement an editor zoom widget (and use it in several places)
* | TileMap::world_to_map Ensure half offset is added according to the returned ↵kleonc2021-05-021-5/+6
| | | | | | | | | | | | value Decide whether half offset should be added based on the value used for calculating the return value of this method.
* | Prevent setting too big or too small Collision Mask and LayerRafał Mikrut2021-04-303-0/+10
| |
* | Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde2021-04-271-2/+2
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #47960 from smix8/issue_47334_navagent2d_target_reachedRémi Verschelde2021-04-272-6/+12
|\ \
| * | put distance check to target into functionsmix82021-04-272-12/+12
| | | | | | | | | | | | put distance check to target into function
| * | Fix NavigationAgent2D not emitting "target_reached" Signal reliablysmix82021-04-161-0/+6
| | | | | | | | | | | | Fix NavigationAgent2D not emitting "target_reached" Signal reliably
* | | Merge pull request #47485 from rafallus/fix/rigidbody-crashRémi Verschelde2021-04-231-7/+5
|\ \ \ | | | | | | | | Fix crash on RigidBody _direct_state_changed
| * | | Unexpose _direct_state_changed in PhysicsBodyrafallus2021-04-221-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed _direct_state_changed bindings Affects 2D and 3D nodes Callbacks now use Callable Tests were changed accordingly
* | | | Merge pull request #48030 from smix8/issue_47337_broken_navagent2d_callbackRémi Verschelde2021-04-231-3/+7
|\ \ \ \ | |/ / / |/| | |
| * | | Fix broken NavigationAgent2D collision avoidance callbackssmix82021-04-201-3/+7
| |/ / | | | | | | | | | Fix broken NavigationAgent2D collision avoidance callbacks
* | | Move collision layer and mask into CollisionObject.Marcel Admiraal2021-04-206-155/+82
| | |
* | | Merge pull request #47991 from LightningAA/regroup-area-inspector-4.0Rémi Verschelde2021-04-201-3/+6
|\ \ \ | |/ / |/| | `Area[X]D`: Put physics override parameters in their own group and document that areas can be used to influence audio
| * | Put physics override parameters in their own group and document that areas ↵Lightning_A2021-04-181-3/+6
| | | | | | | | | | | | can be used to influence audio
* | | Use Array for node configuration warningsNathan Franke2021-04-1140-237/+144
|/ / | | | | | | Previously, the warnings were passed as a string and delimitation of which were hard coded at each implementation.
* | Re-allow playing AnimatedSprite2D without framesRémi Verschelde2021-04-051-2/+1
| | | | | | | | Fixes #47578, partial revert of #47064.
* | Fix crashes in *_input functionsRafał Mikrut2021-04-051-0/+2
| |
* | Merge pull request #45571 from aaronfranke/node2d-real_tRémi Verschelde2021-03-2323-248/+248
|\ \ | | | | | | Use real_t in 2D nodes
| * | Use real_t in non-physics 2D nodesAaron Franke2021-03-1923-248/+248
| | |
* | | Merge pull request #47001 from madmiraal/rename-sprite_2d-region_enabledRémi Verschelde2021-03-202-31/+31
|\ \ \ | |/ / |/| | Rename Sprite.region_enabled getter and setter methods to match properties
| * | Rename Sprite.region_enabled getter and setter to match propertiesMarcel Admiraal2021-03-142-31/+31
| | | | | | | | | | | | | | | Also renames Sprite2D.region_filter_clip property and its setter to region_filter_clip_enabled and set_region_filter_clip_enabled.
* | | Merge pull request #47064 from ↵Rémi Verschelde2021-03-171-0/+1
|\ \ \ | | | | | | | | | | | | | | | | jmb462/fix-crash-in-uninitialized-AnimatedSprite2d-play Fix crash on calling play() in a uninitialized AnimatedSprite2D (Fix #46013)
| * | | Fix crash on calling play() in a uninitialized AnimatedSprite2Djmb4622021-03-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #47024 from groud/navigationRémi Verschelde2021-03-172-23/+48
|\ \ \ \ | |/ / / |/| | | Allow Navigation to be more flexible
| * | | Allow Navigation to be more flexibleGilles Roudière2021-03-152-23/+48
| |/ /
* / / Move SpriteFrames to its own file in the resources folderAaron Franke2021-03-162-274/+1
|/ /
* | Fixes small typos and grammar correctionAnshul7sp12021-03-123-7/+7
| |
* | Implement Navigation layersGilles Roudière2021-03-104-1/+30
| |