diff options
| Commit | dc264ba3b0c3323ca5f5c2f3e602d531ab759717 (patch) | |
|---|---|---|
| Author | 2022-11-28 16:08:46 +0200 | |
| Committer | 2022-11-28 16:08:46 +0200 | |
| Files | 24c9d12dfeebc065bffb0e0b9957f37b020e9248 | |
| uni-projects-dc264ba3b0c3323ca5f5c2f3e602d531ab759717.tar uni-projects-dc264ba3b0c3323ca5f5c2f3e602d531ab759717.tar.gz uni-projects-dc264ba3b0c3323ca5f5c2f3e602d531ab759717.zip | ||
| Parent | 7da36542204ac7c5a99fbc9f111af450044fea25 (diff) | |
[OKG/HWK2] Fixed end time not being properly calculated
1 files changed, 4 insertions, 4 deletions
| -rw-r--r-- | Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html | 8 |
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],
|
