Let's say I want to RayCast from a character to another character. I know you have to put a direction in the second parameter but is there some way I can do it where it goes directly to a vector3 point?
Example of what I want but what is not possible:
local V1 = Vector3.new(0,0,5) local V2 = Vector3.new(5,2,6) workspace:Raycast(V1, V2) -- So it goes from V1 to V2
The Introduction to Raycasting page on the devhub has a formula to calcuate direction from origin and destination. rayDirection = rayDestination - rayOrigin