CE Quaternion
Quaternion math library
Example
// Rotates model towards target
var _dir = [target.x - x, target.y - y, target.z - z];
var _q = ce_quaternion_create_look_rotation(_dir, [0, 0, 1]);
var _mat = ce_quaternion_to_matrix(_q);
matrix_set(matrix_world, _mat);
vertex_submit(vbuffer, pr_trianglelist, texture);
matrix_set(matrix_world, matrix_build_identity());
Installation
Using Catalyst, the open-source package manager for GameMaker Studio 2:
catalyst require slagtand-org/ce-quaternion
Related
This library is a part of project CE. For more information, please visit the project's repository: https://github.com/slagtand-org/ce