RayCasts hit each other when firing in the same direction

I’m making a simple pistol for fun and I have bullet tracers and that basically makes the RayCasts well I at least think its RayCasts hit each other whenver you shoot in the same direction.

https://gyazo.com/672b693e2dd139fc31a94cc8cb61459d

Not sure what or if I should show some code but just ask if you need a line of code to help.

Thanks! :]

1 Like

Did you try adding the tracer parts to an ignore list for the next raycast?

It doesn’t matter if I have the tracer script enabled, the same thing happens. You can’t shoot in the same place multiple times or it won’t work.

Aside from the tracers, is the gun creating any other parts that could get in the way of the mouse pointer / rays?

I’m not too sure, there is a small part in front of the gun but thats the part where the tracer comes from. I think the raycast comes from the handle but I’m not sure.

Yeah, the RayCast comes from the Handle and not the part at the front of the barrel

From the video it just seemed like something is blocking the rays with each next shot. Rays don’t interact with one another so it must be a part.

I was thinking that and I disabled the Tracer script and it still doesn’t let me shoot in the same place as it won’t do damage to other players or NPCs

Print what the rays hit each time you shoot, that could give clues.