14-02-2019, 01:03 PM
(14-02-2019, 12:55 PM)josemendez Wrote: Hi,
That code does not make sense at all.
- You're assigning a string to a variable of type GameObject. The name of an object is not the object itself.
- "actor" must be an ObiActor component, not a GameObject.
- "solver" must be declared somewhere in your script, and must be of type ObiSolver. You can make it a public variable and assign it in the inspector, or grab it from the actor itself.
Imho, before trying to use advanced stuff like cloth simulation, you should first study the elemental stuff: how to write C# and how to use Unity. I cannot hand-hold you trough such basic coding issues.
Here's some resources on the topic:
https://unity3d.com/es/learn/tutorials/s/scripting
It is not imho. I learned some, but not enough. I should study basic and after ask you. Thank you. I check tutorial for what I do not have now.