From dc264ba3b0c3323ca5f5c2f3e602d531ab759717 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 28 Nov 2022 16:08:46 +0200 Subject: [OKG/HWK2] Fixed end time not being properly calculated --- Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html index 456620a..3ce89cb 100644 --- a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html +++ b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html @@ -175,8 +175,8 @@ for (var instruction of animationData[time]) { if (instruction[1].constructor === Array) { executeBacklog.push({ - start : time, - end : time + instruction[0], + start : Number(time), + end : Number(time) + instruction[0], iscamera : true, camposold : vecToArr(camera.position), @@ -188,8 +188,8 @@ } else { executeBacklog.push({ - start : time, - end : time + instruction[0], + start : Number(time), + end : Number(time) + instruction[0], iscamera : false, mannequin : instruction[1], -- cgit v1.3.1-26-gb76a