updates boxes under the Looki2000 text

This commit is contained in:
2022-11-25 16:12:24 +01:00
parent 3158c26d20
commit 088d59925a
3 changed files with 56 additions and 42 deletions

View File

@@ -87,7 +87,7 @@ function animate() {
camera.position.z = jelly_position.y;
// translate div displayed over the render frame to the position of the jelly position
document.getElementById("main_box").style.transform = "translate(" + (jelly_position.x * 50) + "px, " + (jelly_position.y * 50) + "px)";
document.getElementById("over_render_box").style.transform = "translate(" + (jelly_position.x * 50) + "px, " + (jelly_position.y * 50) + "px)";
// if velocity is not 0 then multiply it by damping multiplier. do it for each axis separately
if (velocity.x != 0) {