29-12-2020, 01:00 AM
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();
}
}