Is raycasting gonna be a problem for me?

I cannot understand raycasting, and would It be critical if I do not learn it?

Raycasting only play’s a role if you need to know that there is line of sight between two positions (Vector3). And then if it does hit something you can know how far away what it hit was among other things.

I am mostly scripting in the realm of effects area, and sometimes I’ll need raycasting for my projectiles. Any tips?

I would make sure to understand what Unit Vectors are since they play a major role in making Raycasting projectiles a lot easier.

Well a lot of the time I use Region3 or magnitude. So could I compare this to raycasting? I already understand unit vectors.

Raycasting is similar to .magnitude except instead of checking for the distance between two Vectors it will determine from the source Vector to the goal Vector if there is any Instances between the two.

Unit Vectors come in handy since it allows you to use the gun’s position as a source Vector and quickly make a Goal Vector (Which in case for a gun will be the farthest distance it can shoot).

Thanks! That is what I was asking. Sorry if I didn’t ask well.

1 Like