Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Obi cloth mesh lagging behind a model
#17
(09-08-2019, 10:07 AM)cubrman Wrote: Listen, I am patiently waiting in line, and I know that you are busy, but I think I have waited long enough, I've e-mailed you my problems 3 weeks ago and it had clear instructions in the mail, please give my project another look - just launch it and press H - everything works. The character is controlled with WSAD.

I cannot use your plugin until you help me and on my own I cannot fix this issue nomatter what I do.

Hi there,

Not sure how I was supposed to figure out that pressing H gets it to run, as your original email contained no instructions on how to do so:

Quote:Dear Josemendez,

four days ago I've sent you an e-mail, folliwing the thread on your forum:

http://obi.virtualmethodstudio.com/forum...60#pid4060

Since then I have not heard from you and I worry that my message might not have arrived. I am sending you my project again, where the clothes are lagging behind the character:

<project link>

Please let me know of your progress, because I am completely unable to use your plugin for now.

I just took a look at your project (which is quite contrived, btw). Turns out you had "simulate in local space" disabled in your solver. Since you move your character in Update() (ScriptManager.cs triggers OnUpdate for all your ZhiBehaviours, which in turn call Mover's Move(), which in turn moves the CharacterController), and simulation takes place in FixedUpdate which is called before Update(),  there's a 1-frame delay to begin with. This is made worse by the fact that the simulation is taking place in world space, so only fixed particles move with the character (1 frame after it has moved), then all other particles have to play catch-up with them.

Character cloth is strongly recommended to be simulated in local space all throughout the docs:

http://obi.virtualmethodstudio.com/tutor...cloth.html
http://obi.virtualmethodstudio.com/tutor...space.html

Enabling local space gets rid of any floating point precision issues derived from moving your character far from the scene's origin, gives you fine control over inertial forces, and also gets rid of most glitches derived from script update order, since simulation takes place in the character's root reference frame directly. That's why it is a must for characters (though it is useful in many other situations).

PD: sent you a video to your gmail account showing the fix.

kind regards,
Reply


Messages In This Thread
RE: Obi cloth mesh lagging behind a model - by josemendez - 09-08-2019, 01:20 PM