RayCasting In A Cone Angle?

Hello! I wouldn’t consider myself a good scripter at all, so if you have a answer it would be much appreciated if you could explain it a bit. Anyways how would I go about raycasting in a cone angle? I have a blood script that sends a raycast downwards to hit a object but I want the blood to hit a wall and I have no idea where to even start.

1 Like

There’s not a perfect way. In your case, blood splatters shouldn’t be inefficient or you could start to lag with blood. I recommend five or so raycast with random directions to form a rough cone.

quick response, your a life saver!

1 Like