javascript - how to add joint and create joint for custom mesh in babylon js -


function createjoint(imp1, imp2) {     var joint = new babylon.distancejoint({         maxdistance: distancebetweenpoints     })     imp1.addjoint(imp2, joint); } spheres.foreach(function(point, idx) {     var mass = 1;     point.physicsimpostor = new babylon.physicsimpostor(point, babylon.physicsimpostor.particleimpostor, {         mass: mass     }, scene);     if (idx >= subdivisions) {         createjoint(point.physicsimpostor, spheres[idx - subdivisions].physicsimpostor); //         if (idx % subdivisions) {             createjoint(point.physicsimpostor, spheres[idx - 1].physicsimpostor);         }     } });] 

i trying add joint , create joint custom imposter using above code.i stuck code.please me


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -