I need to create a total of four raycasts given two Vector3 positions, starting from Position1 and ending at Position2.
I can easily create a raycast to emulate a projectile hit (given two positions) but I need to account for the Radius of the projectile. I figure a quick and simple solution would be to do four raycasts parallel but offset to the original raycast (offset by the radius of the projectile). (making a box is fine I don’t need a perfect circle)
Here is a visualization of the ray given two positions (top image) and the four rays I need (bottom image):
Again, the only known variables here are Position1, Position2, and Radius of Projectile.
local Pos1 = Vector3.new(12.14, 7.63, 0.62) local Pos2 = Vector3.new(19.41, 7.63, 0.62) local Radius = 1.2
What I need is to convert those pair of positions into four pairs of positions given the Radius.