I am currently developing the laser gun from the Serious Sam series. It has four barrels, and I'm wanting to use Raycast for hit detection. The reason I want to use Raycast is using the old method, creating the projectile in the main gun script, but then having an external scripted duplicated into the projectile makes the projectile laggy and ineffective. If anyone could help, it'd be greatly appreciated.

Can someone help please?

2 comments

0

Can you show us what you tried? I would rather explain what you did wrong than explain what and how to use raycasting. The less broad the better.

0

It already raycasts (hitscan, however.)