Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cloth not updated in builds
#3
My apologies, but I'm not finding the Obi solver manual update methods as I am the Final IK examples for disabling / enabling. I've tried this, but it does not appear to have solved the issue. 

Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RootMotion.FinalIK;
using Obi;

public class IK_LateUpdate : MonoBehaviour
{

    // Array of IK components that you can assign from the inspector.
    // IK is abstract, so it does not matter which specific IK component types are used.
    public IK[] components;
    public ObiFixedUpdater obifixedupdater;

    void Start()
    {
        // Disable all the IK components so they won't update their solvers. Use Disable() instead of enabled = false, the latter does not guarantee solver initiation.
        foreach (IK component in components) component.enabled = false;
        ObiProfiler.DisableProfiler();
    }

    void FixedUpdate()
    {
        // Updating the IK solvers in a specific order.
        foreach (IK component in components) component.GetIKSolver().Update();
        ObiProfiler.EnableProfiler();
    }

}
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