原创 Unity學習筆記(3)-----製作一個仿真星系(複雜版)【Step3】

臥槽一天就寫這個了, 好累啊。。。orz 以後還是寫的濃縮點吧。。 ----------------------正文分割-------------------------- 這篇文章, 主要討論之前提到的, 我對於約束條件的一些看法。 在

原创 Unity學習筆記(3)-----製作一個仿真星系(複雜版)【Step2】

接上文, 不多贅述, 直接繼續。 之前是實現了繞轉功能。 有Bug的話自行理解解決, 沒有Bug, 只是效果有問題的, 自行調整參數, 根據高中物理。(就比如一來直接就飛走了Force就調小點啊什麼的...) 其實基本功能已經實現, 這篇

原创 LeetCode No.41 First Missing Positive 題解

LeetCode No.41 First Missing Positive 題解 題目描述 Given an unsorted integer array, find the first missing positive int

原创 LeetCode No.84 Largest Rectangle in Histogram 題解

LeetCode No.84 Largest Rectangle in Histogram 題解 題目描述 Given n non-negative integers representing the histogram’s

原创 Unity學習筆記(4)-----粒子效果的實現

Unity學習筆記(4)—–粒子效果的實現 一.效果展示 下面用若干張張動圖展示效果: 大概就是這樣,並不是很難。 實際效果要比圖中的好一點(順暢得多)。 實現步驟 大致可以分爲如下幾個步驟,然後逐個實現就可以了: 生產粒

原创 Unity學習筆記(3)-----製作一個仿真星系(複雜版)【Step1】

繼續學習Unity3D  這周任務之一是要做一個太陽系,如下圖: 而這次筆記的重點不在作業上~.~, 而是在於如何建立一個, 真正意義上的  “星系”。 上過課都知道, 作業簡單用以下兩條語句即可搞定: Planet.gameObje

原创 SQL學習(1)----MySql v5.7.17-winx64 下載及初始配置

這學期爲數據庫開了專門的課程, 所以與Unity一樣, 希望用Blog 的方式記錄一下, 權當做筆記。 這學期中段應該是要做一個數據庫項目, 爲此我打算先安裝好它。  選擇的是MySQL, 鏈接如下:https://dev.mysql.c

原创 LeetCode No.233 Number of Digit One 題解

LeetCode No.233 Number of Digit One 題解 題目描述 Given an integer n, count the total number of digit 1 appearing in al

原创 Unity3D 學習筆記 —— Tween對象的實現與動作管理

Unity3D 學習筆記 —— Tween對象的實現與動作管理     這周的作業我選擇做Tween的實現, 一方面覺得挺好玩的(可以拓展原有系統類的方法, 想想就激動。 相當於可以把自己寫的一些方法像庫一樣使用)。另一方面覺得的

原创 C++多態,虛函數小結

之前學C++的時候, 課上的特別快。 很多東西當時只是會用,細節以及理解都很不到位。 時隔一年是時候重新回顧一下了。 不然之後都不好意思說自己學過C++… :) 這個僅供自己回顧使用。把自己的費解易錯地方記錄下來。 首先就是多態

原创 LeetCode 239. Sliding Window Maximum 題解(下)

LeetCode 239. Sliding Window Maximum 題解(下) 題目描述 Given an array nums, there is a sliding window of size k which is

原创 LeetCode 51. N-Queens 題解

LeetCode 51. N-Queens 題解 題目描述 The n-queens puzzle is the problem of placing n queens on an n×n chessboard such th

原创 LeetCode No.45 JumpGame 2 題解

LeetCode No.45 JumpGame 2 題解 題目描述 Given an array of non-negative integers, you are initially positioned at the fi

原创 LeetCode No.224 Basic Calculator 題解

題目描述 Implement a basic calculator to evaluate a simple expression string. The expression string may contain open

原创 LeetCode 239. Sliding Window Maximum 題解(上)

LeetCode 239. Sliding Window Maximum 題解(上) 496. Next Greater Element I 題解 一點說明: 這篇博客其實是主要寫 496. Next Greater Eleme