24-02-2018, 10:39 AM
(21-02-2018, 04:47 PM)josemendez Wrote: Hi there,
If your cloth is not attached to any transform and is just floating around freely, then you will have to estimate its position by averaging the particle's positions. There's a sample snippet in the documentation that does exactly this:
http://obi.virtualmethodstudio.com/tutor...icles.html
It is the "ActorCOM" component (COM stands for Center Of Mass). You will want to modify it slightly so that the "com" variable is public so that you can access it from outside the component.
cheers!
Thank you very much sir. That is exactly what i needed.