How would I add 45 degrees upwards on a lookVector? I’m trying to make the angle of the shots in my game go upwards. Right now I’m trying but it only works on some orientations
You can get the 45 degree angle of a look vector by subtracting the part’s position and the part’s position plus 1 stud on the X and Y axis because because adding the same amount of studs on the X and Y axis will make the position move up or down in a 45 degree angle depending if the numbers are negative or not.
--Below gets the 45 degree diagonal position
local diagonalDirection = (basePart.CFrame * CFrame.new(0,1,1)).p
--Below will get you the vector that points 45 degrees from the basePart
local vectorDirection = (diagonalDirection - basePart.Position).Unit