using UnityEngine; //!!!!!! //This objective type is still under development //!!!!!! namespace BioIK { //This objective aims to minimise the joint configuration changes between consecutive solutions. //It should only be used once as it acts as a global objective for the whole body posture. //Preferably add it to the root of your character. [AddComponentMenu("")] public class Displacement : BioObjective { public override ObjectiveType GetObjectiveType() { return ObjectiveType.Displacement; } public override void UpdateData() { } public override double ComputeLoss(double WPX, double WPY, double WPZ, double WRX, double WRY, double WRZ, double WRW, Model.Node node, double[] configuration) { double loss = 0.0; for(int i=0; i