summaryrefslogtreecommitdiff
path: root/scene
AgeCommit message (Collapse)Author
2019-03-27KinematicBody performance and quality improvementsDaniel Rakos
With this change finally one can use compound collisions (like those created by Gridmaps) without serious performance issues. The previous KinematicBody code for Bullet was practically doing a whole bunch of unnecessary calculations. Gridmaps with fairly large octant sizes (in my case 32) can get up to 10000x speedup with this change (literally!). I expect the FPS demo to get a fair speedup as well. List of fixes and improvements: - Fixed a general bug in move_and_slide that affects both GodotPhysics and Bullet, where ray shapes would be ignored unless the stop_on_slope parameter is disabled. Not sure where that came from, but looking at the 2D physics code it was obvious there's a difference. - Enabled the dynamic AABB tree that Bullet uses to allow broadphase collision tests against individual shapes of compound shapes. This is crucial to get good performance with Gridmaps and in general improves the performance whenever a KinematicBody collides with compound collision shapes. - Added code to the broadphase collision detection code used by the Bullet module for KinematicBodies to also do broadphase on the sub-shapes of compound collision shapes. This is possible thanks to the dynamic AABB tree that was previously disabled and it's the change that provides the biggest performance boost. - Now broadphase test is only done once per KinematicBody in Bullet instead of once per each of its shapes which was completely unnecessary. - Fixed the way how the ray separation results are populated in Bullet which was completely broken previously, overwriting previous results and similar non-sense. - Fixed ray shapes for good now. Previously the margin set in the editor was not respected at all, and the KinematicBody code for ray separation was complete bogus, thus all previous attempts to fix it were mislead. - Fixed an obvious bug also in GodotPhysics where an out-of-bounds index was used in the ray result array. There are a whole set of other problems with the KinematicBody code of Bullet which cost performance and may cause unexpected behavior, but those are not addressed in this change (need to keep it "simple"). Not sure whether this fixes any outstanding Github issues but I wouldn't be surprised.
2019-03-18Add missing check for 2d physics bounce and friction settersKanabenki
The override check was already present for 3d physics but missing for 2d
2019-03-16Merge pull request #26308 from bojidar-bg/11722-meshlibrary-transformsRémi Verschelde
Consider StaticBody and NavMesh position when converting to a MeshLibrary
2019-03-16Merge pull request #26459 from ptrojahn/eofRémi Verschelde
Remove extraneous line breaks from text resources
2019-03-16Merge pull request #26788 from mo7sener/masterRémi Verschelde
RichTextLabel: Adding the ability to change the default cursor
2019-03-13Merge pull request #26484 from Andrettin/Configurable-Tooltip-OffsetRémi Verschelde
Make the Tooltip Position Offset Configurable
2019-03-12AudioStreamSample: Don't crash when writing to file failsmerumelu
2019-03-10Merge pull request #26867 from bojidar-bg/26816-graphnode-titleRémi Verschelde
Fix cursor going to start while editing GraphNode's title
2019-03-10Fix cursor going to start while editing GraphNode's titleBojidar Marinov
Fixes #26816
2019-03-10Merge pull request #26859 from JFonS/fix_cpuparticles_resettingRémi Verschelde
Fix resetting of CPUParticles (2D and 3D)
2019-03-10Fix resetting of CPUParticles (2D and 3D)JFonS
2019-03-09Merge pull request #26851 from RandomShaper/fix-26460-fake-event-floodRémi Verschelde
Fix fake null-motion mouse event flood
2019-03-09Fix fake null-motion mouse event floodPedro J. Estébanez
This commit also improves a bit the code quality by making the intent of fake events (and themselves) more explicit. Fixes #26460.
2019-03-09Fixes UI navigation with joysticksGilles Roudière
2019-03-09Merge pull request #26784 from humblers/fix-cpuparticles2dRémi Verschelde
Prevent invisible/inactive cpupparticles2d to redraw
2019-03-09Prevent invisible/inactive cpuparticles to redraw(3d)Daeil Kim
2019-03-08Added the ability to change the default cursor property for the ↵Robear Selwans
RichTextLabel component.
2019-03-08Prevent invisible/inactive cpupparticles2d to redrawDaeil Kim
2019-03-07Fixes bad gizmo alignment for textures with odd sizeGilles Roudière
2019-03-07Merge pull request #21534 from volzhs/fix-scrollcontainer-sizeRémi Verschelde
Precise size calculation of ScrollContainer
2019-03-07No longer crash due to wrongly requesting a gizmo, fixes #26735Juan Linietsky
2019-03-06Merge pull request #26669 from RandomShaper/fix-26460Juan Linietsky
Improve/fix picking
2019-03-06Hide StreamTexture flags, fixes #26640Juan Linietsky
2019-03-06-Make tileset and meshlibrary edit in a separate inspector, fixes #26671Juan Linietsky
-Made relationship lines appear based on theme settings, not previous hack -Fix drawing of relationship lines (was broken) -Fix double initialization of theme settings
2019-03-05Merge pull request #26642 from DrMoriarty/check_cursor_lineRémi Verschelde
Check cursor line and column
2019-03-05Improve/fix pickingPedro J. Estébanez
Acknowledge mouse button events as position tellers (to make picking more solid; for instance, the touch mouse is raised with a mouse unpressed event that may have a more current position) Forget mouse position for physics if touch mouse raised (because the position known as last is no longer meaningful) Remove needless check for mouse over/exit (now there's code to inject an spurious move for cases where camera/objects have moved) Restrict 2D mouse over/exit to mouse events (including emulated from touch; true touches shouldn't trigger the signals) Fixes #26460.
2019-03-05Merge pull request #26638 from KoBeWi/fix_audio_stream_playerRémi Verschelde
Pause AudioStreamPlayer on SceneTree pause
2019-03-05Check cursor line and columnVasiliy Makarov
Added a trivial check if cursor.line and cursor.column are valid. Fix #26245
2019-03-05Pause AudioStreamPlayer on SceneTree pauseTomasz Chabora
2019-03-05Fix general issues with filesystem-related UI components in the editorMichael Alexsander Silva Dias
2019-03-04TileSet/TileMap: Decompose solid non-convex polygons into convexes. Real fix ↵Mariano Suligoy
for #24003
2019-03-04Fix and restore text, material and mesh previewers.Juan Linietsky
2019-03-04Update focus mask only if there is a focused control, fixes #26524Juan Linietsky
2019-03-04Warn about plane shape usage, closes #26503Juan Linietsky
2019-03-04Specifically error when users try to use sync to physics and move and slide, ↵Juan Linietsky
closes #26545
2019-03-04Merge pull request #26511 from clayjohn/giprobe_gles2_warningRémi Verschelde
Add warning to GIProbe when using GLES2
2019-03-03add warning to GIProbe when using GLES2clayjohn
2019-03-03Fixed missing exclude raycast shapes arguments in snap, closes #25230Juan Linietsky
2019-03-03Add a warning when using plain Container, as many users seem to ↵Juan Linietsky
misunderstand what this is.
2019-03-03Skeletons can now choose between using local or world coords for processing, ↵Juan Linietsky
fixes #26468
2019-03-03Merge pull request #26514 from clayjohn/hide_properties_gles2Rémi Verschelde
Hide hdr and shadow_contact in gles2
2019-03-03Fix style issues from recent commitsRémi Verschelde
2019-03-02hide hdr and shadow_contact in gles2clayjohn
2019-03-02Removed some printsJuan Linietsky
2019-03-02Clean up and fix some situations where triangulation may fail, closes #26366Juan Linietsky
2019-03-02Fixed a case of broken loop due to wrapping on the edge, closes #25245Juan Linietsky
2019-03-02Make query checks less agressive, fixes #24694Juan Linietsky
2019-03-02Made the tooltip position offset configurableAndrettin
2019-03-01Remove extraneous line breaks from text resourcesPaul Trojahn
Fixes #23539
2019-03-01Remove old method that makes no sense today, fixes #25566Juan Linietsky