(14-02-2019, 12:28 PM)josemendez Wrote: It depends on how you want the cloth to behave when it is "fixed". Does it need to move around, or will it just be static (un-simulated) until someone purchases it?
I want it be static.
I tried code, but many errors happen.
"Assets\InverseParticles.cs(15,33): error CS0029: Cannot implicitly convert type 'string' to 'UnityEngine.GameObject'"
"Assets\InverseParticles.cs(18,40): error CS1061: 'GameObject' does not contain a definition for 'invMasses' and no accessible extension method 'invMasses' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)"
"Assets\InverseParticles.cs(20,44): error CS1061: 'GameObject' does not contain a definition for 'particleIndices' and no accessible extension method 'particleIndices' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)"
"Assets\InverseParticles.cs(21,24): error CS1061: 'GameObject' does not contain a definition for 'invMasses' and no accessible extension method 'invMasses' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)"
"Assets\InverseParticles.cs(21,39): error CS0103: The name 'solver' does not exist in the current context"
I can't solve the problem. I thought "actor" in your code is to get name of object of mesh. However, string causes error.
In addition to that, I cannot what to do for "solver", or am I wrong how to think the problems?
(14-02-2019, 12:47 PM)Richard Wrote: I want it be static.
I tried code, but many errors happen.
"Assets\InverseParticles.cs(15,33): error CS0029: Cannot implicitly convert type 'string' to 'UnityEngine.GameObject'"
"Assets\InverseParticles.cs(18,40): error CS1061: 'GameObject' does not contain a definition for 'invMasses' and no accessible extension method 'invMasses' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)"
"Assets\InverseParticles.cs(20,44): error CS1061: 'GameObject' does not contain a definition for 'particleIndices' and no accessible extension method 'particleIndices' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)"
"Assets\InverseParticles.cs(21,24): error CS1061: 'GameObject' does not contain a definition for 'invMasses' and no accessible extension method 'invMasses' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)"
"Assets\InverseParticles.cs(21,39): error CS0103: The name 'solver' does not exist in the current context"
I can't solve the problem. I thought "actor" in your code is to get name of object of mesh. However, string causes error.
In addition to that, I cannot what to do for "solver", or am I wrong how to think the problems?
The code is the image.