diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-02-17 18:27:19 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-02-17 19:02:59 -0700 |
commit | cff7a69aa0af87a48d3c274626a297126f13a572 (patch) | |
tree | d8801a0150ac8bcf92af17b944016237dc9c6be5 /editor/translations/sr_Cyrl.po | |
parent | a59286f0198c7a3141fc9a8af4d458c7dcfbf653 (diff) |
Fix test_body_motion recovery
This change makes test_body_motion more reliable when the kinematic body
recovers from being stuck.
- When recovery occurs, the rest information is generated, in order to
make sure collision results from test_move, move_and_collide and
move_and_slide are consistent and return a collision in case of overlap.
- The new calculation for recovery vector makes sure the recovery is
never more than the overlap depth between shapes.
This can help with cases where the kinematic body overlaps with several
shapes.
Recovery is made iteratively, without forcing a full overlap at each
step. This helps with getting proper rest information when recovery
occurs.
- One Way Collision:
When attempting motion, contact direction is checked against motion
before skipping in order to solve cases where kinematic bodies can sink
into one-way collision shapes.
Rest info now sets max contact depth in order to properly handle one-way
collision.
- Low speed motion is now handled in the rest info, by never setting
min_allowed_depth lower than motion length.
Separation is always applied with full margin, otherwise contact is lost
when low speed motion occurs right after higher speed motion.
- Similar changes are applied to 3D in order to make 2D and 3D
consistent.
Diffstat (limited to 'editor/translations/sr_Cyrl.po')
0 files changed, 0 insertions, 0 deletions