Author Topic: Question: Can raycasts detect projectiles?  (Read 613 times)

Question in title.  Experienced comments welcome.

No, a projectile doesn't have a collider. It's a weird thing that actually does a raycast each tick to see if it hit stuff.

So it's a mathematical position with a model mounted to it with vectors applied?

I think they can.

I made a kirby playertype some time ago and I'm pretty sure it could eat projectile using a rayacst. I think I tested it with the rocket launcher projectile.

Also, doesn't the Deflector use ray casts?

Also, doesn't the Deflector use ray casts?

No, it uses a radius search.

No, a projectile doesn't have a collider. It's a weird thing that actually does a raycast each tick to see if it hit stuff.

They still have a bounding box. It's not used for projectile -> world collision, but it can be used for world -> projectile collision.