]> gitweb.ps.run Git - cloth_sim/blobdiff - Scripts/main.js
tweaking parameters
[cloth_sim] / Scripts / main.js
index 3353f4dae854d6249718305dde58b21f33f97bee..7611601767f080739052a9eba4a97ccd09f6d75c 100644 (file)
@@ -75,7 +75,7 @@ function init() {
   const canvasSpace = 200;\r
 \r
   /** Constant Frame Time */\r
   const canvasSpace = 200;\r
 \r
   /** Constant Frame Time */\r
-  const frameTime = 1000.0 / 60.0;\r
+  const frameTime = 1000.0 / 200.0;\r
 \r
   /** Setup scene */\r
   let [scene, camera, renderer] = setup_scene(canvasSpace);\r
 \r
   /** Setup scene */\r
   let [scene, camera, renderer] = setup_scene(canvasSpace);\r
@@ -83,7 +83,7 @@ function init() {
   //const loader = new THREE.TextureLoader();\r
   //Red color: 0xC70039\r
 \r
   //const loader = new THREE.TextureLoader();\r
   //Red color: 0xC70039\r
 \r
-  const cloth = new Cloth(1, 0.5, 20, 10);\r
+  const cloth = new Cloth(1, 0.5, 40, 20);\r
   const clothGeometry = cloth.generateGeometry();\r
   //const clothMaterial = new THREE.MeshStandardMaterial({ map: loader.load('Textures/DeutschlandFlagge.jpg'), color: 0xffffff, side: THREE.DoubleSide, flatShading: false});\r
   const clothMaterial = new THREE.MeshStandardMaterial({ color: 0xC70039, side: THREE.DoubleSide, flatShading: false });\r
   const clothGeometry = cloth.generateGeometry();\r
   //const clothMaterial = new THREE.MeshStandardMaterial({ map: loader.load('Textures/DeutschlandFlagge.jpg'), color: 0xffffff, side: THREE.DoubleSide, flatShading: false});\r
   const clothMaterial = new THREE.MeshStandardMaterial({ color: 0xC70039, side: THREE.DoubleSide, flatShading: false });\r