Lerping Two CFrames

Hi, I want to find the position between two CFrames along with the correct rotation. I have

local CFrame1 = -- cframe here
local CFrame2 = -- cframe here
local interpolationDifference = 0.3 -- any number between 0 and 1
local interpolatedResult = (CFrame1:Inverse() * CFrame2) * interpolationDifference * CFrame2

which would probably work if interpolationDifference didn’t cause an error, since you can’t multiply CFrames by a singular number like with a Vector3. How can I get around this?

Couldn’t you just do

local CFrame1 = -- cframe here
local CFrame2 = -- cframe here
local interpolationDifference = 0.3 -- any number between 0 and 1
local interpolatedResult = CFrame1:Lerp(CFrame2, interpolationDifference)

?

1 Like

this works thanks! Me overcomplicating everything again :stuck_out_tongue: