#Raycasts
1 messages · Page 1 of 1 (latest)
starting to see some issues
it acc fires from the origin and not from the attachment
Oh the reason why it's because you're using the wrong argument for the second one.
It shouldn't be workspace.boom.Position because that second one is ray direction
You can just get the direction by
v.Position - workspace.boom.Position
That's probably it
oh
💔
It might be just try it out..
Actually wait switch it around I meant workspace.boom.Position - v.Position
Since it's the direction towards boom
thank you
it works now
I'll use the attachments worldcframe
instead
Alr then good 
tysm
to get a direction of that is also you need to use .Unit
(v.Position - workspace.boom.Position).Unit
you're just getting the vector but not the direction.
also the params for raycast is this RayCast(starting position, direction, raycastParams)
Wouldn't you still have the direction regardless of it being normalized?
Because the outcome would still be the same regardless with roblox's raycast right?
In Roblox's WorldRoot:Raycast function, the second parameter must be a direction vector, not a target position.
yeah it still works but if you want to have a have better control, you need to normalize and multiply by the desired length.
Ohh but I thought that was only for like look vectors and not when you already have a known end position