LSL/Luau casts a wrong rotation to <0,0,0,0> instead of ZERO_ROTATION
inĀ progress
SuzannaLinn Resident
In beta grid, Luau 2026-03-24.23471922914, and in main grid, Luau 2026-01-30.21516666911
// VM Mono
default { state_entry() {
rotation r = (rotation)"hello";
llOwnerSay((string)r);
}}
// -- > <0.00000, 0.00000, 0.00000, 1.00000>
// VM Luau
default { state_entry() {
rotation r = (rotation)"hello";
llOwnerSay((string)r);
}}
// -- > <0.00000, 0.00000, 0.00000, 0.00000>
Log In
H
Harold Linden
marked this post as
inĀ progress
H
Harold Linden
marked this post as
planned
Thanks! Not terribly surprising,
rotation
's semantics are a little annoying because some functions return <0,0,0,1>
, and others <0,0,0,0>
in the error case. I'll get this fixed!