abouttreesummaryrefslogcommitdiff
path: root/Scripts/main.js
diff options
context:
space:
mode:
authorPatrick Schönberger2021-02-06 13:25:24 +0100
committerPatrick Schönberger2021-02-06 13:25:24 +0100
commit56f6324db4aa55946a6b5ef7de3e1df8b0e22bca (patch)
treeb6d08c97865f40a1449b37085f2f128532d8c05a /Scripts/main.js
parent999a549825d3de0b53e2922462ed1e120e176ec2 (diff)
downloadcloth_sim-56f6324db4aa55946a6b5ef7de3e1df8b0e22bca.tar.gz
cloth_sim-56f6324db4aa55946a6b5ef7de3e1df8b0e22bca.zip
tweaking parameters
Diffstat (limited to 'Scripts/main.js')
-rw-r--r--Scripts/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/Scripts/main.js b/Scripts/main.js
index 3353f4d..7611601 100644
--- a/Scripts/main.js
+++ b/Scripts/main.js
@@ -75,7 +75,7 @@ function init() {
const canvasSpace = 200;
/** Constant Frame Time */
- const frameTime = 1000.0 / 60.0;
+ const frameTime = 1000.0 / 200.0;
/** Setup scene */
let [scene, camera, renderer] = setup_scene(canvasSpace);
@@ -83,7 +83,7 @@ function init() {
//const loader = new THREE.TextureLoader();
//Red color: 0xC70039
- const cloth = new Cloth(1, 0.5, 20, 10);
+ const cloth = new Cloth(1, 0.5, 40, 20);
const clothGeometry = cloth.generateGeometry();
//const clothMaterial = new THREE.MeshStandardMaterial({ map: loader.load('Textures/DeutschlandFlagge.jpg'), color: 0xffffff, side: THREE.DoubleSide, flatShading: false});
const clothMaterial = new THREE.MeshStandardMaterial({ color: 0xC70039, side: THREE.DoubleSide, flatShading: false });