mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Better broadphase performance (#6272)
* Better broadphase parallelism Moves more stuff into the parallel loop and avoids allocating the list per fixtureproxy. * Fixes * Better docs * doc
This commit is contained in:
@@ -141,7 +141,8 @@ public sealed partial class PhysicsSystem
|
||||
if ((contact.Flags & ContactFlags.Filter) != 0x0)
|
||||
{
|
||||
if (!ShouldCollide(fixtureA, fixtureB) ||
|
||||
!ShouldCollide(uidA, uidB, bodyA, bodyB, fixtureA, fixtureB, xformA, xformB))
|
||||
!ShouldCollideSlow(uidA, uidB, bodyA, bodyB, fixtureA, fixtureB, xformA, xformB) ||
|
||||
!ShouldCollideJoints(uidA, uidB))
|
||||
{
|
||||
contact.IsTouching = false;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user