defold-xmath
defold-xmath copied to clipboard
Support Defold 1.9.4 VMath Additions
https://github.com/defold/defold/pull/9438
vmath.quat_matrix4 - get quaternion from matrix4
vmath.matrix4_compose - create matrix4 from translation (vector3|vector4), rotation (quaternion) and scale (vector3)
vmath.matrix4_scale - create matrix4 from scale (vector3) or from number (uniform scale) or 3 number (x, y, z)
vmath.clamp - clamp input value in range [min, max]. Input value can be number, vector, vector3, vector4. In case of vector type clamp applies per vector component. min, max also can be number, vector, vector3, vector4.
Potentially also vmath.euler_to_quat?
defold/defold#9701
Nice, i'll take a crack this weekend.