fixed bug in quaternion slerp

This commit is contained in:
Joel Nises
2014-06-05 17:48:53 +02:00
parent 4da58d88d4
commit e610e9446e
2 changed files with 13 additions and 4 deletions

View File

@@ -582,10 +582,10 @@ namespace detail
{
// Linear interpolation
return detail::tquat<T, P>(
mix(x.w, y.w, a),
mix(x.x, y.x, a),
mix(x.y, y.y, a),
mix(x.z, y.z, a));
mix(x.w, z.w, a),
mix(x.x, z.x, a),
mix(x.y, z.y, a),
mix(x.z, z.z, a));
}
else
{