public void LookAtSpecificThing( Transform poi, float headLatency=0.075f ) { lookTarget = LookTarget.SpecificThing; headSpeed = HeadSpeed.Fast; this.headLatency = headLatency; nextHeadTargetPOI = poi; currentTargetLeftEyeXform = currentTargetRightEyeXform = null; nextTargetLeftEyeXform = nextTargetRightEyeXform = null; StartEyeMovement( poi ); }
public void LookAtAreaAround( Transform poi ) { lookTarget = LookTarget.GeneralDirection; headSpeed = HeadSpeed.Slow; eyeLatency = Random.Range(0.05f, 0.1f); nextEyeTargetPOI = poi; currentTargetLeftEyeXform = currentTargetRightEyeXform = null; nextTargetLeftEyeXform = nextTargetRightEyeXform = null; StartHeadMovement( poi ); }
public void LookAtFace( Transform leftEyeXform, Transform rightEyeXform, float headLatency=0.075f ) { lookTarget = LookTarget.Face; headSpeed = HeadSpeed.Fast; faceLookTarget = FaceLookTarget.EyesCenter; this.headLatency = headLatency; currentTargetLeftEyeXform = leftEyeXform; currentTargetRightEyeXform = rightEyeXform; nextTargetLeftEyeXform = nextTargetRightEyeXform = null; nextHeadTargetPOI = null; StartEyeMovement( ); }