summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2018-08-21Changes to ClippedCamera, RayCast,Raycast2D and 2D physics API to add ↵Juan Linietsky
ability to choose between bodies and areas when colliding.
2018-08-21Deprecate incorrect Color::gray()Rémi Verschelde
This average is not a proper approximation of a grayscale value, get_v() is better suited for that. If we want a real to_grayscale() conversion, it's somewhat more involved: https://en.wikipedia.org/wiki/Grayscale Remove the deprecated Gray() from C# bindings as it conflicts with new named color constants.
2018-08-21Fix arg name in docs, some copy-paste errorsPoommetee Ketson
2018-08-19Added ray shape and move_and_slide with snapping on 3D.Andrea Catania
Added stop_on_slope on 2d part
2018-08-16Lift 1440 limit in rotation_degrees hint rangeRémi Verschelde
Fixes #15947.
2018-08-14Merge pull request #18096 from aaronfranke/masterJuan Linietsky
[Core] Split up math_2d.h
2018-08-13Merge pull request #20587 from groud/fix_2deditor_scrollable_zoneRémi Verschelde
Fixes bugs on the 2D editor scrollable area
2018-08-10[Core] Change math_2d includes to vector2 includes where relevantAaron Franke
2018-08-10apply a threshold for floor angle, fixes #16037, fixes #15632Juan Linietsky
2018-08-09New TileSet EditorMAriano Javier Suligoy
2018-08-07Merge pull request #20381 from AndreaCatania/phymat_2Juan Linietsky
Improved Physics material
2018-08-07Removed physics material combination mode. Added rough and absorbent ↵Andrea Catania
parameter to material. Fixed 'change' signal connection
2018-07-30Fixes bugs on the 2D editor scrollable areagroud
2018-07-27Fix PhysicsBody build with deprecated=noRémi Verschelde
Fixes #20483.
2018-07-26doc: Sync classref with current sourceRémi Verschelde
Fix various missing arguments in bindings.
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-25Merge pull request #20404 from TigerCaldwell/masterRémi Verschelde
Ensured consistency between RigidBody, PhysicsDirectBodyState, PhysicsServers and their 2D counterparts
2018-07-24Merge pull request #20252 from RandomShaper/fix-canvas-searchRémi Verschelde
Fix CanvasItem's search for a CanvasLayer
2018-07-24Modified RigidBody, PhysicsDirectBodyState, PhysicsServer, and their ↵Tiger Caldwell
respective 2D counterparts to be more consistent and to include more useful methods. RigidBody: - Added add_central_force - Added add_force - Added add_torque - Added apply_central_impulse RigidBody2D: - Added add_central_force - Added add_torque - Added apply_central_impulse - Added apply_torque_impulse PhysicsDirectBodyState: - Added apply_central_impulse Physics2DDirectBodyState: - Added add_central_force - Added add_force - Added add_torque - Added apply_central_impulse - Added apply_impulse - Added apply_torque_impulse PhysicsServer: - Added body_add_force - Added body_add_torque - Added body_add_central_force - Added body_apply_central_impulse Physics2DServer: - Added body_add_torque - Added body_add_central_force - Added body_apply_central_impulse - Added body_apply_torque_impulse Also fixed some small bugs along the way
2018-07-24Removed unnecessary assignmentsWilson E. Alvarez
2018-07-23Merge pull request #12403 from AndreaCatania/phymatJuan Linietsky
Physics material
2018-07-22Defer TileMap::update_dirty_quadrants once again.Pieter-Jan Briers
This fixes #20323. #11077 is now technically re-broken, but you can now call update_dirty_quadrants as workaround.
2018-07-18Fix CanvasItem search for a CanvasLayerPedro J. Estébanez
This fixes the situation where a `CanvasItem` descendant of a `Viewport` which in turn is a descendant of a `CanvasLayer` prefers the more outer `CanvasLayer` rather than the `Vierport`'s. Because of that, `CanvasItem`s inside a `Viewport` inside a `CanvasLayer` were being rendered to the main `Viewport` instead of the render target of the innermost one.
2018-07-17Merge pull request #19087 from danvalho/masterMax Hilbrunner
SpriteFrames: expose method to get array containing animation names
2018-07-17Further fixes to KinematicBody2D API, support for sync motion in moving objectsJuan Linietsky
2018-07-17Merge pull request #20191 from jvdnbus/line2d-stretchMax Hilbrunner
Line2D texture stretch mode
2018-07-16Changes to how snap works (I think this makes more sense now)Juan Linietsky
2018-07-16-Added support for raycast in KinematicBody2DJuan Linietsky
-Added support for snapping in KinematicBody2D
2018-07-16Line2D texture stretch modeJorn Van denbussche
Prototype for stretching the texture across the whole line. Fixed end cap tile mode.
2018-07-16More accurate UV round begin capJorn Van denbussche
2018-07-10Fix possible bug with AudioStreamPlayer2D audio positionMarcelo Fernandez
2018-07-09Improved stream paused fade codeMarcelo Fernandez
2018-07-05Merge pull request #19646 from chanon/fix-audiostream-cant-set-null-streamMax Hilbrunner
Fix can't set AudioStreamPlayer stream to null
2018-07-03Merge pull request #18634 from groud/fix_control_child_of_node2dMax Hilbrunner
Fixes the bad calculation of margin & anchors when child of Node2D
2018-07-03Merge pull request #19205 from marcelofg55/audio_stream_pauseMax Hilbrunner
Pause AudioStreamPlayer when SceneTree pauses
2018-06-27Changes to how node paths are selected from property, allowing setting a hint.Juan Linietsky
2018-06-26Merge pull request #19164 from marcelofg55/tilemap_undo2Rémi Verschelde
Improve TileMap undo operations, second try
2018-06-26Optimize _recreate_quadrantsMarcelo Fernandez
2018-06-22fix can't set AudioStreamPlayer stream to nullchanon
2018-06-08Merge pull request #19343 from bojidar-bg/x-fix-tilemap-shape-rotationRémi Verschelde
Fix bugs related to bad handling of rotated/translated shapes in tilemap
2018-06-08Merge pull request #19314 from Jellonator/masterRémi Verschelde
Added autotile override
2018-06-07Fixes the bad calculation of margin & anchors when child of Node2Dgroud
2018-06-05SpriteFrames: expose method to get array containing animation namesdanvalho
2018-06-05Revert "Prevent visibility notification from being called twice in object ↵Rémi Verschelde
creation"
2018-06-03Pause AudioStreamPlayers when SceneTree pausesMarcelo Fernandez
2018-06-03Fix bugs related to bad handling of rotated/translated shapes in tilemapBojidar Marinov
Fixup #18529 and #12870
2018-06-02Added autotile overrideJames Beedie
2018-05-31Revert "Revert "Prevent visibility notification been called twice in object ↵Rémi Verschelde
creation"" This reverts commit 4d277b96ad581358f63870ae051dc73b69c82cd7. Woops, this wasn't meant to be committed. I just reverted it locally to test something, nothing wrong with the original commit :)
2018-05-31Revert "Prevent visibility notification been called twice in object creation"Rémi Verschelde
This reverts commit d42b17607ef14aeb72036f8747eb4d5c64979872.
2018-05-31Style: Apply clang-format (5.0) to some missed filesRémi Verschelde