示例#1
0
 public void Mix(IKLookData data, float weight)
 {
     jobData.eyesWeight  = Mathf.LerpUnclamped(jobData.eyesWeight, data.jobData.eyesWeight, weight);
     jobData.headWeight  = Mathf.LerpUnclamped(jobData.headWeight, data.jobData.headWeight, weight);
     jobData.bodyWeight  = Mathf.LerpUnclamped(jobData.bodyWeight, data.jobData.bodyWeight, weight);
     jobData.weightClamp = Mathf.LerpUnclamped(jobData.weightClamp, data.jobData.weightClamp, weight);
     jobData.position    = Vector3.LerpUnclamped(jobData.position, data.jobData.position, weight);
 }
示例#2
0
 public void Add(IKLookData data, float weight)
 {
     jobData.eyesWeight  += data.jobData.eyesWeight * weight;
     jobData.headWeight  += data.jobData.headWeight * weight;
     jobData.bodyWeight  += data.jobData.bodyWeight * weight;
     jobData.weightClamp += data.jobData.weightClamp * weight;
     jobData.position    += data.jobData.position * weight;
 }
 public IKLook(IKLookData node)
 {
     data = node;
 }