implement character limb swing animation

(cherry picked from commit 19c59e38feff562ccbaade8e38fdd303bba784a5)
This commit is contained in:
LabyStudio
2022-04-14 00:45:23 +02:00
parent 7df2806456
commit 62d7ba24b9
9 changed files with 211 additions and 70 deletions
@@ -10,14 +10,8 @@ window.ModelBase = class {
}
/**
* Render the model
*
* @param group Group to render
* @param time Animation offset
*/
render(group, time) {
group.updateMatrix();
render(entity, limbSwingAmount, limbSwing, timeAlive, yaw, pitch) {
entity.group.updateMatrix();
}
}