2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-28 22:48:05 +03:00

QuaternionSlerp: Fix wrong values Related #763

This commit is contained in:
s1lentq 2021-03-27 22:50:57 +07:00
parent f27be28abb
commit 3c63e41533

View File

@ -187,9 +187,9 @@ void QuaternionSlerp(vec_t *p, vec_t *q, float t, vec_t *qt)
cosom = p[0] * q[0] + p[1] * q[1] + p[2] * q[2] + p[3] * q[3];
if ((1.0 + cosom) > 0.00000001)
if ((1.0 + cosom) > 0.000001)
{
if ((1.0 - cosom) > 0.00000001)
if ((1.0 - cosom) > 0.000001)
{
omega = acos(cosom);
sinom = sin(omega);