Handle bone orientation and scale as well

Former-commit-id: 80c80342ae3458b98c2520359bc0a0705b22dbc1
This commit is contained in:
timokoesters 2019-04-16 20:43:13 +02:00
parent 713b59aeff
commit 8cc4399d18

View File

@ -31,6 +31,8 @@ impl Bone {
// TODO: Make configurable // TODO: Make configurable
let factor = 0.3; let factor = 0.3;
self.offset += (target.offset - self.offset) * factor; self.offset += (target.offset - self.offset) * factor;
self.ori = vek::ops::Slerp::slerp(self.ori, target.ori, factor);
self.scale += (target.scale - self.scale) * factor;
} }
} }