diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-11-17 17:57:02 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-11-17 17:57:02 -0700 |
commit | d630269593d485ff8c9010d7ad6cca7c32cf93a6 (patch) | |
tree | 7b44d0eac09d605394f2a227e1ad9d5c09180434 /editor/import_dock.h | |
parent | 15062513c01a835f59d9c905e5e65a7002d6c370 (diff) |
Fix contact generation with backface collision disabled
Replaced the previous implementation for backface collision handling (in
test_axis function from SAT algorithm) with much simpler logic in the
collision generation phase with face shapes, in order to get rid of
wrong contacts when backface collision is disabled.
Now it just ignores the generated collision if the contact normal is
against the face normal, with a threshold to keep edge contacts.
Added a special case for soft bodies to invert the collision instead of
ignoring it, because for now it's the best solution to avoid soft bodies
to go through concave shapes (they use small spheres). This might be
replaced with a better algorithm for soft bodies later.
Diffstat (limited to 'editor/import_dock.h')
0 files changed, 0 insertions, 0 deletions