Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit24654eb67a15b11cd1f896840327d411ce354b77 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-11-22 09:40:05 +0200
Committer
 Syndamia <kamen@syndamia.com>
2022-11-22 09:40:05 +0200
Filesa80103a24851145d65a664ca2caf9b07ccc454f6
uni-projects-24654eb67a15b11cd1f896840327d411ce354b77.tar
uni-projects-24654eb67a15b11cd1f896840327d411ce354b77.tar.gz
uni-projects-24654eb67a15b11cd1f896840327d411ce354b77.zip
Parent9063312de28be28c1ee7fdcfce6266706dcdbdba (diff)
[OKG/HWK2] Posture B's body Y is now also fixed with function
1 files changed, 4 insertions, 4 deletions
-rw-r--r--Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html8
diff --git a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html
index 5aad4d2..2864dbc 100644
--- a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html
+++ b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html
@@ -197,7 +197,7 @@
mannequin : instr[1],
A : (instr[2]) ? instr[2] : fixPostureY(instr[1].posture),
- B : instr[3],
+ B : fixPostureY(instr[3]),
cpos : instr[1].position.clone(),
npos : (instr.length === 4 || !instr[4]) ? null : vecSum(instr[1].position, instr[4]),
});
@@ -652,14 +652,14 @@
** Анимационни действия
**/
- const DEFAULT_POSTURE = {"version":6,"data":[0,[0,-90,0],[0,0,-2],[0,0,5],[6,0,0],[0],[-6,-6,-0.6],[-6,0,0],[0],[6,6,-0.6],[7,-0.6,-5],[15],[-15,0,0],[10,10],[-7,0.6,-5],[15],[15,0,0],[10,10]]};
+ const DEFAULT_POSTURE = {"version":6,"data":[3.8,[0,-90,0],[0,0,-2],[0,0,5],[6,0,0],[0],[-6,-6,-0.6],[-6,0,0],[0],[6,6,-0.6],[7,-0.6,-5],[15],[-15,0,0],[10,10],[-7,0.6,-5],[15],[15,0,0],[10,10]]};
var animationData = {
0: [
[
5, jotaro,
null,
- {"version":6,"data":[0,[0,-90,0],[-1.3,0,-2],[0,0,5],[6,0,0],[0],[-6,-6,-0.6],[-6,0,0],[0],[6,6,-0.6],[7,-0.6,-5],[15],[-15,0,0],[10,10],[-86.8,50.3,65.1],[15],[15,0,0],[10,10]]},
+ {"version":6,"data":[3.8,[0,-90,0],[-1.3,0,-2],[0,0,5],[6,0,0],[0],[-6,-6,-0.6],[-6,0,0],[0],[6,6,-0.6],[7,-0.6,-5],[15],[-15,0,0],[10,10],[-86.8,50.3,65.1],[15],[15,0,0],[10,10]]},
],
[
3, [50, 0, 0], [0, -10, 0], false
@@ -669,7 +669,7 @@
[
3, jotaro,
null,
- {"version":6,"data":[0,[0,-90,0],[0,0,-2],[0,0,5],[6,0,0],[0],[-6,-6,-0.6],[-6,0,0],[0],[6,6,-0.6],[-38.1,-66.6,-62],[15],[-15,0,0],[10,10],[89.2,85,-124.8],[15],[15,0,0],[10,10]]}
+ {"version":6,"data":[3.8,[0,-90,0],[0,0,-2],[0,0,5],[6,0,0],[0],[-6,-6,-0.6],[-6,0,0],[0],[6,6,-0.6],[-38.1,-66.6,-62],[15],[-15,0,0],[10,10],[89.2,85,-124.8],[15],[15,0,0],[10,10]]}
]
],
};