Camera interpolation problems

camera:Interpolate(
	playersPlot.EditCameraPart.CFrame,
	(
		playersPlot.EditCameraPart.CFrame*CFrame.Angles(0, math.rad(90), 0) + Vector3.new(-5, -5, 0)
	    ), 
	3
)

The interpolation script rotates the camera towards the part, but it always ends up facing the exact same direction. I’ve tried changing the math.rad() in the Angles, but it doesn’t do anything to change the finish position

The camera needs to rotate another 90 degrees to the left, so that it’s facing towards the gridded platform

Isn’t Interpolate() not in use anymore? I seem to recall we should use TweenService on the Camera’s CFrame property.

4 Likes

The second argument of Camera:Interpolate sets the Camera.Focus. Focus is not the direction in which the camera is looking, but: " The Camera Focus is a CFrame that determines the area in 3D space the graphics engine will prioritize."

If you want to rotate the direction the camera is looking (which I think is what you want), you’ll need to change the first CFrame argument.

local endCF = EditCameraPart.CFrame
local adjustedCF = endCF * CFrame.Angles(0, math.rad(90), 0) + Vector3.new(-5, -5, 0)

Camera:Interpolate(adjustedCF, adjustedCF, 3)
1 Like

As @FracturedSoftware said, we are advised to use TweenService, as it’s much more reliable to use than Interpolate().

1 Like