Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cloth not updated in builds
#5
Thank you Jose for this detailed response. I've created 2 different Final IK Characters to test this on. One Character contains the clothing skinned on the base character mesh and the other the clothing is a separate object from the base mesh and copies the bones from the base character to deform. In both systems, the clothing behaves as expected in the editor and then has no simulation in the build (but does still deform with the IK skele).

The FixedUpdate method to my modified Updater are as follows:
Code:
private void FixedUpdate()
        {
            // Updating the IK solvers in a specific order.
            foreach (IK ik in IKComponents)
            {
                ik.GetIKSolver().Update();
            }

            ObiProfiler.EnableProfiler();

            Physics.autoSimulation = !substepUnityPhysics;

            BeginStep(Time.fixedDeltaTime);

            float substepDelta = Time.fixedDeltaTime / (float)substeps;

            // Divide the step into multiple smaller substeps:
            for (int i = 0; i < substeps; ++i)
            {
                // Simulate Obi:
                Substep(substepDelta);

                // Simulate Unity physics:
                if (substepUnityPhysics)
                    Physics.Simulate(substepDelta);
            }

            EndStep(substepDelta);

            ObiProfiler.DisableProfiler();

            accumulatedTime -= Time.fixedDeltaTime;
        }

I've tried placing the Final IK Solver as several places in the ObiFixedUpdater, but the result is always the same in builds.
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