Refactor: CollisionDetectionInformation Names
This commit is contained in:
@@ -91,8 +91,16 @@ public class PhysicsEngine2D : IPhysicsEngine2D
|
||||
continue;
|
||||
}
|
||||
|
||||
colliderX.Detect(information);
|
||||
colliderY.Detect(information);
|
||||
if (information.Detector == colliderX)
|
||||
{
|
||||
colliderX.Detect(information);
|
||||
colliderY.Detect(information.Reverse());
|
||||
}
|
||||
else
|
||||
{
|
||||
colliderX.Detect(information.Reverse());
|
||||
colliderY.Detect(information);
|
||||
}
|
||||
|
||||
collisionResolver?.Resolve(information);
|
||||
}
|
||||
|
Reference in New Issue
Block a user