Refactor: CollisionDetectionInformation Names
This commit is contained in:
@@ -73,8 +73,16 @@ public class PhysicsEngine2DCollector : HierarchyObjectBase, 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