Skip to content

Instantly share code, notes, and snippets.

View SigmaThetaTech's full-sized avatar

SigmaTech SigmaThetaTech

View GitHub Profile
@SigmaThetaTech
SigmaThetaTech / CFrame Matrix Printer
Last active October 4, 2020 23:40
Takes in a CFrame datatype in Roblox and prints it such that you can see it in pretty matrix format.
function printCFrameMatrix(cframe)
assert(typeof(cframe) == "CFrame", "CFrame Matrix Printer requires a CFrame data type. Got "..typeof(cframe))
print("Position:", cframe.X, cframe.Y, cframe.Z)
print("CFrame Matrix:")
print("XVector", cframe.XVector)
print("YVector", cframe.YVector)
print("ZVector", cframe.ZVector)
end