CFrame from Z-Up RotationRoblox✎
A rotation from an X-forward, Y-right, Z-up quaternion, as a CFrame at the origin.
Pending review
- needs the Roblox engine — its datatypes, its DataModel or its scheduler
- pure — no execution pins, wire it anywhere
- names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals
Inputs
- X:number=
0 - Y:number=
0 - Z:number=
0 - W:number=
1
Outputs
- result:CFramesplittableSplits into Position, Rotation, or Position and axes, or 12 components.
What it compiles to
luau
print(CFrame.new(0, 0, 0, -(0), -(0), 0, 1))
Not reviewed yet