I am in need of assistance! I am currently working on a simulation involving a cloth that is attached to four corners. I am attempting to reposition the pins at coordinates 0, 10, 88, 98 within a 10x10 array. My goal is to place each pin at a different position in x, y, z dimensions. For this project, I am utilizing Three.js and Cloth.js libraries.
For reference, I am looking for a setup similar to the example provided in the following link: []
Below you will find my code along with the Cloth code that I am using:
var pinsFormation = [];
pinsFormation.push( pins );
pins = [ 0, 10, 88, 98 ];
var container, stats;
var camera, scene, renderer, clothGeometry, object;
init();
animate();
// Code continues here...