Does Luau support double precision native vectors? #2020
-
|
Hi! I've been trying to look at making a Lua/Luau plugin for my project, in Unreal Engine. Modern versions of Unreal use double precision numbers for vectors, as part of their "Large World Coordinate" support for bigger worlds. It seems Luau uses floats for its native vectors. Would it be possible to change that to double precision? Is there anything I should be wary about if I do so? In the event that changing those to double precision isn't feasible, would it be possible to make a native 64-bit component vector type? Such as Would it even be worth it performance wise? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Luau vector type doesn't support an option to have double precision. Double precision vector will have to be implemented by you as a custom userdata type. |
Beta Was this translation helpful? Give feedback.
Luau vector type doesn't support an option to have double precision.
Double precision vector will have to be implemented by you as a custom userdata type.