mach icon indicating copy to clipboard operation
mach copied to clipboard

Fix mult quarternion bug

Open mororo250 opened this issue 2 months ago • 0 comments

There was a bug in the mulQuat multiplication We were doing:
vz + uv_z * w2 + (qz * uv_y - qy * uv_x) * 2 instead of vz + uv_z * w2 + (qx * uv_y - qy * uv_x) * 2

I also optimized the function to use SIMD vectorized methods.

mororo250 avatar Nov 08 '25 00:11 mororo250