SebLague / Portals

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

high velocities sometimes arent registered, fly right through #12

Closed nuttolum closed 3 years ago

nuttolum commented 3 years ago

ive fixed this by instead of keeping a constant track of the old portal side, finding the portal side when the traveller is added to the list of tracked travellers, and comparing it to the current portal side.

nuttolum commented 3 years ago

fixed, see pull requests

nuttolum commented 3 years ago

13 fixes the issue, will reopen this because i realised you may not see it otherwise @SebLague

nuttolum commented 3 years ago

i would like to mention that under extreme velocities the issue persists, and at that point the only way to fix it is to decrease the physics timestep