What is CFrame:Inverse()? What would you use it for?

I don’t understand what CFrame:Inverse() means, I have tried reading the CFrame math operations API doc. Still, I don’t understand.

1 Like

Check the section on “The inverse of a CFrame”.

Thats what I read and couldnt understand

CFrame:Inverse() as it says, will just invert a coordinate frame into it’s opposite. Ex:

print(CFrame.new(-7, 4, -2):Inverse()) -- 7, -4, 2

Just like inverting a number, but with a CFrame.

Also, I’ve seen people trying to understand this as simple as a way of substracting CFrames.

  • A + B = CFrame1 * CFrame2
  • A - B = CFrame1 * CFrame2:Inverse()
8 Likes

Oh wow, I actually need this in what Im working on. Thank you!