summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2018-08-24Particles: Allow speed_scale at 0 in property hint, equivalent to pauseRémi Verschelde
Supersedes and closes #21193.
2018-08-24Merge pull request #21110 from natrim/particles2d_editorRémi Verschelde
Particles2D: fix editing Visibility Rect from new inspector
2018-08-24Make some debug prints verbose-only, remove othersRémi Verschelde
2018-08-23Added a function to cache texture opacity at a pixel, and modified editor to ↵Juan Linietsky
use it. Provides massive speedups to selecting objects, still awaiting for @MarianoGNU to do fixes to the region editor to improve performance.
2018-08-23Revert "Take CanvasLayer transform into account for 2D physics"Rémi Verschelde
This reverts commit 4839e5f6d9ed1c0afee933009ab44b9913310d27. Fixes #21289.
2018-08-23Fix transform not being applied properly after toggling remote node, fixes ↵Juan Linietsky
#17671
2018-08-23Fix properly keep scale in RemoteTransform2D, fixes #17692, closes #17690Juan Linietsky
2018-08-22Restrict set_pitch_scale to positive scales for AudioStreamPlayer*Chaosus
Fixes #20459. Co-authored-by: Tiago José Sousa Magalhães <crakylps@gmail.com>
2018-08-21Merge pull request #21245 from RandomShaper/fix-physics-canvas-xformRémi Verschelde
Take CanvasLayer transform into account for 2D physics
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-21Optimize CanvasLayer::get_global_transform_with_canvasPedro J. Estébanez
So it takes advantage of the `get_global_transform` cached data.
2018-08-21Take CanvasLayer transform into account for 2D physicsPedro J. Estébanez
Fixes #18073.
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-17Particles2D: fix editing Visibility Rect from inspectorNatrim
+ renamed generate_aabb to generate_visibility_rect to prevent future confusions
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