05-01-2021, 09:32 PM
(05-01-2021, 07:50 PM)josemendez Wrote: GetParticlePosition() in 3.4 returns a world-space position for a given particle, regardless of it being “selected” or not. I can’t seem to reproduce this behavior you describe. Would you share the exact code you’re using?
I made a new project and reimported the plugin. Im using the minimum code for the test.
Vector3 pos = cloth.GetParticlePosition (0);
Debug.Log ("position = " + pos);
When its called in the Start function it works. If its triggered with a key press, ui button, or delayed in an Invoke it will return 0,0,0 until the cloth is selected.
Unfortunately the project is using unity 5.6 and an older obi plugin so it may just not work as expected.