mirror of https://github.com/axmolengine/axmol.git
normalize quat
This commit is contained in:
parent
a039d6b0fc
commit
f3e017e139
|
@ -235,6 +235,7 @@ void Bone3D::updateLocalMat()
|
||||||
}
|
}
|
||||||
quat = Quaternion(it.localRot.x * weight + quat.x, it.localRot.y * weight + quat.y, it.localRot.z * weight + quat.z, it.localRot.w * weight + quat.w);
|
quat = Quaternion(it.localRot.x * weight + quat.x, it.localRot.y * weight + quat.y, it.localRot.z * weight + quat.z, it.localRot.w * weight + quat.w);
|
||||||
}
|
}
|
||||||
|
quat.normalize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue