RaycastResult Angle

Hello there!
i’ve been trying to figure out how to get a “deflection” angle via raycasting, but it doesn’t seem to work

it’s supposed to fly like this:

However, my code makes it go like this:

i don’t know what i’m doing wrong and i’m really out of options here, code sample that’s responsible for that math:

	local raycastParams = RaycastParams.new()
	raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
	raycastParams.FilterDescendantsInstances = {workspace.Model,workspace.NormalBullets}
	raycastParams.IgnoreWater = true
	local Hit = workspace:Raycast(CF.Position, CF.LookVector*100, raycastParams)

	if Hit then
		local Thing = math.acos((CF.LookVector):Dot(Hit.Normal))

whenever i print the math.deg() of the “Thing” value it’s always negative for some reason, what am i doing wrong?

1 Like

Theres a good tutorial by Sleitnick: Right here.