defold-xmath icon indicating copy to clipboard operation
defold-xmath copied to clipboard

Support Defold 1.9.4 VMath Additions

Open thejustinwalsh opened this issue 1 year ago • 2 comments

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.

thejustinwalsh avatar Oct 21 '24 18:10 thejustinwalsh

Potentially also vmath.euler_to_quat? defold/defold#9701

thinknathan avatar Jan 02 '25 23:01 thinknathan

Nice, i'll take a crack this weekend.

thejustinwalsh avatar Jan 03 '25 02:01 thejustinwalsh