Explorar el Código

Fixed Quaternion.Slerp() bug reported by github.com/thrisp

leonsal hace 8 años
padre
commit
1e576ef564
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      math32/quaternion.go

+ 1 - 1
math32/quaternion.go

@@ -310,7 +310,7 @@ func (this *Quaternion) Slerp(qb *Quaternion, t float32) *Quaternion {
 	x := this.x
 	y := this.y
 	z := this.z
-	w := this.z
+	w := this.w
 
 	cosHalfTheta := w*qb.w + x*qb.x + y*qb.y + z*qb.z