diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-11-16 14:51:37 -0700 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2021-11-16 14:51:37 -0700 |
commit | afb9e2d9b7ed624a416329246dd265ac5f2d4254 (patch) | |
tree | de076f4f50852886f8aa13fbaa4909087decb3fe /scene/gui | |
parent | 11e03ae7f085b53505c242cf92615f7170c779ce (diff) |
Fix physics BVH pairing for teleported or fast moving objects
Updating the broadphase to find new collision pairs was done after
checking for collision islands, so it was working in most cases due to
the pairing margin used in the BVH, but in case of teleported objects
the narrowphase collision could be skipped.
Now it's done before checking for collision islands, so we can ensure
that broadphase pairing has been done at the same time as objects are
marked as moved so their collision can be checked properly.
This issue didn't happen in the Octree/HashGrid because they do nothing
on update and trigger pairs directly when objects move instead.
Diffstat (limited to 'scene/gui')
0 files changed, 0 insertions, 0 deletions