I have a script that fires projectiles, and just earlier today it worked, but it just stopped working for no reason, so i tried to debug it, and the script says the velocity is this:
no, the projectile cant collide with the barrels, the barrels have no collider attached. im trying to shoot forwards. it should have 0, 30, 0 velocity. the picture i posted has the actual velocities it has.
ignore that, it has nothing to do with anything. i dont know what went wrong, but it seems to either be destroying itself 1 second after it gets spawned. I now think i know the problem, though. I made a big box collider, set it as a trigger, and that might of done it. can things that are labeled OnTriggerEnter collide with other triggers and execute the code in the functions?
Unfortunately, yes it would, but first, disable the collision detection and see if it works like you want. Then you can decide whether you want to change the design, or disable collision detection and re-enable it when it is so far away.