allow rigidbodies to travel through portals

This commit is contained in:
2022-10-10 15:54:32 +02:00
parent fcbef48483
commit 36e8538bb9
4 changed files with 430 additions and 483 deletions

View File

@@ -29,7 +29,7 @@ namespace Escape_Room_Engine.Portal
if (!GetComponent<Collider>().isTrigger) throw new Exception("Collider must be a trigger.");
}
private void LateUpdate()
private void FixedUpdate()
{
for (var i = 0; i < _closePortalDrivers.Count; i++)
{