updates boxes under the Looki2000 text
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user