virtualx-engine/servers
PouleyKetchoupp beeebb4c2f 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-19 08:09:17 -07:00
..
arvr Change ARVRPositionalTracker to a reference and better expose it to GDNative 2021-03-29 23:01:04 +11:00
audio Remove duplicate WARN_PRINTS macro 2021-06-18 12:57:59 +01:00
camera SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
physics More accurate unsafe motion calculation 2021-07-19 08:09:17 -07:00
physics_2d More accurate unsafe motion calculation 2021-07-19 08:09:17 -07:00
visual Portals - fix autolink sprawling, refine logs 2021-07-15 13:04:05 +01:00
arvr_server.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
arvr_server.h Style: Set clang-format Standard to c++14 2021-05-04 14:45:15 +02:00
audio_server.cpp Remove duplicate WARN_PRINTS macro 2021-06-18 12:57:59 +01:00
audio_server.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
camera_server.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
camera_server.h Style: Set clang-format Standard to c++14 2021-05-04 14:45:15 +02:00
physics_2d_server.cpp Fix move_and_collide causing sliding on slopes 2021-07-19 08:09:16 -07:00
physics_2d_server.h Fix move_and_collide causing sliding on slopes 2021-07-19 08:09:16 -07:00
physics_server.cpp Fix move_and_collide causing sliding on slopes 2021-07-19 08:09:16 -07:00
physics_server.h Fix move_and_collide causing sliding on slopes 2021-07-19 08:09:16 -07:00
register_server_types.cpp Remove unused PhysicsShapeQueryResult & Physics2DShapeQueryResult 2021-07-05 11:21:15 -07:00
register_server_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
server_wrap_mt_common.h Modernize Mutex 2021-02-18 11:58:08 +01:00
visual_server.cpp Merge pull request #46130 from lawnjelly/portals 2021-07-14 13:38:01 +02:00
visual_server.h Merge pull request #46130 from lawnjelly/portals 2021-07-14 13:38:01 +02:00
visual_server_callbacks.cpp Portal occlusion culling 2021-07-14 11:43:23 +01:00
visual_server_callbacks.h Portal occlusion culling 2021-07-14 11:43:23 +01:00