virtualx-engine/scene
PouleyKetchoupp cf1ddfdb90 Make move_and_slide collision detection more accurate
More accurate unsafe motion calculation
* Safe and unsafe motion are calculated by dichotomy with a limited
number of steps. It's good for performance, but on long motions that
either collide near the beginning or near the end, the result can be
very imprecise.
* Now a factor 0.25 or 0.75 is used to converge faster when this case
happens, which allows longer motions to get more accurate collision
detection.
* Makes snap collision more precise, and helps with cases where diagonal collision on the border of a platform can lead to the character being stuck.

Additional improvements to move_and_slide:
* Handle slide canceling in move_and_collide with 0 velocity instead of
not applying it.
* Better handling of snap with custom logic to cancel sliding.
* Remove small jittering when using stop on slope, by canceling the
motion completely when the resulting motion is less than margin instead
of always projecting to the up direction (in both body motion and snap).

Co-authored-by: fabriceci <fabricecipolla@gmail.com>
2021-07-01 15:15:42 -07:00
..
2d Make move_and_slide collision detection more accurate 2021-07-01 15:15:42 -07:00
3d Make move_and_slide collision detection more accurate 2021-07-01 15:15:42 -07:00
animation Use PROPERTY_USAGE_NONE instead of 0 for no property usage 2021-07-01 14:13:27 -04:00
audio Fixes small typos and grammar correction 2021-03-12 19:05:16 +05:30
debugger Merge pull request #49719 from LightningAA/rename-node-is-ancestor-of 2021-06-29 12:07:25 +02:00
gui Fix editor suffixes and degrees conversion 2021-06-30 12:38:25 -03:00
main Use PROPERTY_USAGE_NONE instead of 0 for no property usage 2021-07-01 14:13:27 -04:00
resources Use PROPERTY_USAGE_NONE instead of 0 for no property usage 2021-07-01 14:13:27 -04:00
register_scene_types.cpp Deprecate ImmediateGeometry 2021-06-30 14:14:41 -03:00
register_scene_types.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
scene_string_names.cpp Fix editor suffixes and degrees conversion 2021-06-30 12:38:25 -03:00
scene_string_names.h Remove clips_input() method and use clip_content 2021-06-25 15:46:37 +02:00
SCsub SCons: Add explicit dependencies on thirdparty code in cloned env 2020-12-18 10:29:34 +01:00