I need to make a CFrame which i have reflect depending on the normal vector3 (obtained from a Raycast). The CFrame is equal to
CFrame.lookAt(ray.Position, rayOrigin)
and the normal is obviously just a line which is orthogonal to the ray.Position
theres definitely already a solution for this somewhere, and I have checked (I even tried reading some roblox docs), but I didn’t find anything especially useful.
This just gives me a CFrame pointing in the same direction as the Normal (or at least along it). I need it to be on the opposite side of the normal facing the opposite direction.
Yeah this works, requires me to change my code somewhat to get what I want to, but other than that, its good. Thanks! (also, ray.Direction isn’t in ray, I recommend just puttingoriginDirection for future reference if people have the same issue)