コード例 #1
0
        public float CalculatePositionCost(BoneData bone)
        {
            float cost = math.lengthsq(bone.localPosition - localPosition);

            return(cost);
        }
コード例 #2
0
        public float CalculateVelocityCost(BoneData bone)
        {
            float cost = math.lengthsq(bone.velocity - velocity);

            return(cost);
        }
コード例 #3
0
 public void Set(BoneData bone)
 {
     this.localPosition = bone.localPosition;
     this.velocity      = bone.velocity;
 }