summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-03Update space parameters in 2D and 3DPouleyKetchoupp
Clarified space parameters for contacts and added missing ones. List of changes: -Add contact bias to space parameters -Add solver iterations to space parameters, instead of a specific physics server function -Renamed BODY_MAX_ALLOWED_PENETRATION to CONTACT_MAX_ALLOWED_PENETRATION to make it consistent with other contact parameters
2021-12-03Improve RigidDynamicBody contacts in 2D and 3DPouleyKetchoupp
Changed the algorithm for solving contacts to keep previous contacts as long as they are under the max separation threshold to keep contact impulses more consistent and contacts more stable. Also made 2D consistent with 3D and changed some default parameters: -Contact bias is now 0.8 instead of 0.3 to avoid springy contacts -Solver iterations are 16 instead of 8 by default for better stability Performance considerations: Tested with stress tests that include lots of contacts from overlapping bodies. 3D: There's no measurable difference in performance. 2D: Performance is a bit lower (close to 10% slower in extreme cases) The benefit for 2D physics to be much more stable outweighs the slight decrease in performance, and this could be alleviated by changing the algorithm to use jacobians for contact solving to help with cache efficiency and memory allocations.
2021-11-26Merge pull request #55350 from Ev1lbl0w/fix_default_value_inspectorRémi Verschelde
2021-11-26Fix wrong comparison with default valuesRicardo Subtil
2021-11-26Merge pull request #55347 from Faless/js/4.x_scons_emcc_abspathRémi Verschelde
2021-11-26[HTML5] Use absolute path for JS lib/pre/externs.Fabio Alessandrelli
Ensure better compatibility when emcc which may run some tools from different paths (e.g. closure compiler). This fixes externs include issues with modern emcc using the closure compiler.
2021-11-26Merge pull request #55344 from Chaosus/repair_error_funcYuri Roubinsky
2021-11-26Fix console colors on WindowsYuri Roubinsky
2021-11-26Merge pull request #55342 from Faless/js/4.x_input_fix_focus_iframeRémi Verschelde
2021-11-26[HTML5] Fix focus (again) in Firefox's iframes.Fabio Alessandrelli
This actually makes sense(?), when running inside an iframe the active element might be our canvas, while the iframe itself is not active in the parent window. Since we consume the event, the iframe does not get focused in Firefox (but does in Chromium-based browsers), so we must always call focus to handle such occasions.
2021-11-26Merge pull request #55311 from Chaosus/fix_uniform_arrayRémi Verschelde
Fix uniform array alignment to fix a bug
2021-11-26Merge pull request #54345 from floppyhammer/fix-circular-texture-progressRémi Verschelde
Fix nine patch of circular TextureProgressBar
2021-11-26Merge pull request #55316 from Chaosus/win32_restore_console_windowRémi Verschelde
2021-11-26Merge pull request #55325 from Calinou/fsr-use-warn-printRémi Verschelde
2021-11-25Merge pull request #55313 from nekomatata/bounce-energy-stabilityRémi Verschelde
2021-11-25Merge pull request #55310 from Ev1lbl0w/fix_headless_window_errorsRémi Verschelde
2021-11-25Use `WARN_PRINT_ONCE()` for FSR-related warning messagesHugo Locurcio
`print_error()` should generally not be used directly. Also, falling back is best done by printing a warning message instead of an error message.
2021-11-25Merge pull request #55227 from ator-dev/fix-code-foldingRémi Verschelde
2021-11-25Merge pull request #55319 from Calinou/cluster-builder-remove-debug-codeRémi Verschelde
2021-11-25Fix uniform array alignment to fix a bugYuri Roubinsky
2021-11-25Remove disabled debug code in ClusterBuilderRDHugo Locurcio
2021-11-25Restore console window output for editor app on WindowsYuri Roubinsky
2021-11-25Fix RigidDynamicBody gaining momentum with bouncePouleyKetchoupp
Bounce calculation now uses the previous frame's velocity, so it's consistent with the actual motion of the bodies involved and not the yet-to-be-applied forces. When bounce is 1, using the current velocity was causing the new forces (including gravity) to be taken into account, which lead to the bounce velocity to be higher than the falling velocity at the moment of impact, adding more and more energy over time.
2021-11-25Merge pull request #52387 from Calinou/node-rename-path-changed-notificationMax Hilbrunner
Rename Node's `NOTIFICATION_PATH_CHANGED` to `NOTIFICATION_PATH_RENAMED`
2021-11-25Added more empty definitions for headless display serverRicardo Subtil
2021-11-25Merge pull request #55309 from aaronfranke/ps-exist-errorsRémi Verschelde
2021-11-25Don't show errors when getting nonexistent settingsAaron Franke
2021-11-25Merge pull request #55308 from Chaosus/revert_uniform_order_fixRémi Verschelde
2021-11-25Revert "Pushes array of uniforms to first place in the buffer"Yuri Roubinsky
2021-11-25Merge pull request #55306 from Chaosus/enchance_global_docRémi Verschelde
2021-11-25Merge pull request #55307 from bruvzg/mvk_sdfgi_fixRémi Verschelde
2021-11-25Enchance descriptions of @GlobalScope/@GDScriptYuri Roubinsky
2021-11-25[macOS / iOS] Use non atomic operation to store facing bits on MoltenVK.bruvzg
2021-11-25Merge pull request #55303 from aaronfranke/ps-wait-modifiedRémi Verschelde
2021-11-25Move logic for saving project features to ProjectSettings save_customAaron Franke
2021-11-25Merge pull request #55291 from theoway/fix_vs_editor_variale&signal_renameRémi Verschelde
Fixes variable/signal nodes not renaming in visualscript editor
2021-11-24Fix code folding when end of block is unindented delimiterator-dev
2021-11-24Merge pull request #51679 from Je06jm/fsrRémi Verschelde
AMD FidelityFX Super Resolution
2021-11-24Merge pull request #31171 from aaronfranke/feature-systemRémi Verschelde
2021-11-24Fixes variable/singal nodes not renaming in visualscript editorUmang Kalra
2021-11-24Project feature warning systemAaron Franke
2021-11-24Merge pull request #55281 from bruvzg/mvk_fog_volumesRémi Verschelde
2021-11-24Merge pull request #52456 from kleonc/image-fill-rectRémi Verschelde
2021-11-24Merge pull request #55286 from KoBeWi/scene_prophetRémi Verschelde
2021-11-24Show scene when showing built-in script filekobewi
2021-11-24[macOS / iOS] Use storage buffers instead of unsupported images for the ↵bruvzg
volumetric fog on MoltenVK.
2021-11-24Merge pull request #55238 from Giwayume/bugfix/atlas_cutoff_edge_masterRémi Verschelde
Atlas import 1px missing from right side of non-cropped image.
2021-11-24Merge pull request #50139 from LightningAA/rename-remove-to-remove-atRémi Verschelde
Rename `remove()` to `remove_at()` when removing by index
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-23Implemented AMD's FSR as a computer shader for upscaling 3D scenesJe06jm