From 3f60f306be0389d00da145f93ce0366c0a1faeb3 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Tue, 6 Oct 2026 16:40:18 +0200 Subject: [PATCH] Calm plane, smoother terrain --- assets/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/assets/index.html b/assets/index.html index c7353a0..8a5ca4b 100644 --- a/assets/index.html +++ b/assets/index.html @@ -39,10 +39,10 @@ function getHeight(x, y) { var h = 0; - h += Math.sin(x / 200) * 80; - h += Math.cos(y / 200) * 80; - h += Math.sin(x / 100 + y / 200) * 40; - h += Math.cos(y / 100 - x / 200) * 30; + h += Math.sin(x / 300) * 50; + h += Math.cos(y / 300) * 50; + h += Math.sin(x / 150 + y / 300) * 25; + h += Math.cos(y / 150 - x / 300) * 20; return h; } @@ -114,9 +114,9 @@ var yawT = 0, rollT = 0, pitchT = 0; function drawPlane() { - var yaw = Math.sin(Date.now() / 1500) * 0.3; - var roll = Math.sin(Date.now() / 800) * 0.3; - var pitch = Math.cos(Date.now() / 1000) * 0.2; + var yaw = Math.sin(Date.now() / 3000) * 0.1; + var roll = Math.sin(Date.now() / 2500) * 0.08; + var pitch = Math.cos(Date.now() / 2800) * 0.05; var transformed = planeVertices.map(function(v) { var x = v[0], y = v[1], z = v[2];