rotacija iz sredine kegla

kegel
Jurij Podgoršek 2022-11-28 14:01:32 +01:00
parent 1eff20bf21
commit 726a7ededb
1 changed files with 7 additions and 1 deletions

View File

@ -126,6 +126,12 @@ for (s = 0; s < radialnihSegmentov; s++) {
);
}
for (i = 0; i < polozaji.length; i++) {
if (i % 3 == 2) {
polozaji[i] -= height / 2;
}
}
// Spremeni v vertexe
var vertices = new Float32Array(polozaji);
@ -274,7 +280,7 @@ oscCallbacks[`${prepend}/gyro`] = function (args) {
};
oscCallbacks['/midi'] = function (args) {
//console.log("MAMOMO MIDI!", args);
//kegel.material.color.offsetHSL(args[2].value / 1000, 0, 0);
kegel.material.color.offsetHSL(args[2].value / 1000, 0, 0);
if (Math.random() < 0.5) {
kegel.scale.x *= 1.5;
} else {