SebLague / Portals

Portals in Unity
https://www.youtube.com/watch?v=cWpFZbjtSQg
MIT License
773 stars 167 forks source link

add high velocity object support #13

Closed nuttolum closed 3 years ago

nuttolum commented 3 years ago

when an object goes through too fast, it won't be teleported because the old portal side will be saved after it passes through, due to HandleTravellers() running on LateUpdate. this fixes it by saving the old portal side as soon as the tracking starts rather than waiting for late update.