C API Quaternion Math library

As a Roblox developer, it is currently too hard to compute precise computations of rotations without having to resort to writing your own library for handling quaternions which in result costs more performance overhead due to the logic & complexity involved. It would be significantly better if a library for quaternions was built into the current math library as the function calls themselves would be cheaper hence it being ran on the C API that Luau runs on.

Euler angles aren’t enough in applications where precise angles are required, one being physic solvers. Quaternions are the standard for tackling this sort of issue.

If Roblox is able to address this issue, it would improve my development experience because then I would be able to take on ambitious projects where it involves accurate physics with relatively low performance cost for the client & server.

12 Likes

It seems like your problem is based on a specific example where you have ran out of macro optimization opportunities and now have to result to micro-optimization like this. It might help to focus on problems, rather than solutions and describing (by linking) the specific project where you are having issues with performance so staff can investigate there about if this specific proposed solution would significantly help.