Just starting out and I would like to modify the behavior of a projectile in one of the tutorial examples.
In my case it’s a simple laser, but once it’s fired… it just exists forever and flies off into space.
I would like to set a max range for projectiles and just have them terminate when they reach it.
Seems relatively simple, not exactly sure where to begin? I was contemplating treating each projectile as if it had “fuel” of some sort and when it runs out the object is destroyed. Another thought was a radius or sphere at the origination point and terminate when it reaches the end?
Wondering how you all may have handled this?