mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Handle bone orientation and scale as well
Former-commit-id: 80c80342ae3458b98c2520359bc0a0705b22dbc1
This commit is contained in:
parent
713b59aeff
commit
8cc4399d18
@ -31,6 +31,8 @@ impl Bone {
|
||||
// TODO: Make configurable
|
||||
let factor = 0.3;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user