Timeline for When an object is launched off-screen, is there any way to know if it's coming back?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 24, 2021 at 0:01 | vote | accept | Sean Carey | ||
Feb 23, 2021 at 23:51 | vote | accept | Sean Carey | ||
Feb 23, 2021 at 23:55 | |||||
Feb 23, 2021 at 17:52 | comment | added | eLTomis |
It's actually a valid answer. Once the object becomes invisible, it's position tracking might be started to check if X position is out of viewport range. It might be a coroutine, it might be done in Update() . However, just because precision here doesn't change anything, running Coroutine once per second might do it just enough.
|
|
Feb 23, 2021 at 15:51 | history | edited | DMGregory♦ | CC BY-SA 4.0 |
Missing back-tick was making the formatting look wrong
|
Feb 23, 2021 at 13:23 | comment | added | DMGregory♦ |
Doesn't this still leave a period of doubt, if the object is off the top of the screen but has not yet crossed xMin or xMax ? In that case, it might be coming back (if its x velocity is low enough), or it might not (if its x velocity is high enough).
|
|
Feb 23, 2021 at 13:18 | history | answered | starikcetin | CC BY-SA 4.0 |