Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cloth not updated in builds
#2
(25-12-2020, 12:47 AM)fluidman84 Wrote: Using Unity 2020.1.15f1 with Obi Cloth v. 5.6.2. 

Continuation of the project including Final IK in forum thread thread link. Everything simulating correctly in the editor as expected, but as soon as I export a PC build of the scene, there is no cloth simulation happening at all. 

As a system test, I've exported the example scene "CharacterCloth" and it works in a build exactly the same way as in the editor. 

What elements could contribute to the cloth not being simulated while in a build, but appearing fine in the editor. I suspect this this is a simple setting, but I cannot find a suggestion in the user docs.

Make sure FinalIK and Obi are being updated in the correct order: FIK first, then Obi. By default final ik is updated in LateUpdate, so it will be the other way around. You want bone posituons adjusted by Final IK before Obi feeds them into the cloth simulation.

Also keep in mind that the order in which Unity calls FixedUpdate(), Update() and LateUpdate() methods for different components is essentially random. So if you were to update Obi in LateUpdate() by using ObiLateUpdater, (or FinalIK in FixedUpdate, leaving Obi in its own FixedUpdate()) things could work well in-editor but not in standalone or vice-versa. You’d be relying on pure luck, as you leave it up to Unity to call Obi’s FixedUpdate or FIK’s FixedUpdate() first.

You need to be explicit about the order in which you want things to happen during your frame. So, update FinalIK and Obi explicitly in a single FixedUpdate() call.
Reply


Messages In This Thread
Cloth not updated in builds - by fluidman84 - 25-12-2020, 12:47 AM
RE: Cloth not updated in builds - by josemendez - 28-12-2020, 05:18 PM
RE: Cloth not updated in builds - by fluidman84 - 29-12-2020, 01:00 AM
RE: Cloth not updated in builds - by josemendez - 29-12-2020, 09:26 AM
RE: Cloth not updated in builds - by fluidman84 - 30-12-2020, 10:47 PM
RE: Cloth not updated in builds - by josemendez - 30-12-2020, 11:56 PM
RE: Cloth not updated in builds - by fluidman84 - 31-12-2020, 09:08 AM