ï¼é±éåãããã«Unityãå§ãã¾ããã
å
ã
ã¯åã©ãã¨ä¸ç·ã«Scratchããªãã¨ãªããã£ã¦ããã®ã§ããã
èªåãçµã¿ç«ã¦ãã¹ã¯ãªããéãã«ãã£ã©ã¯ã¿ã¼ãåãã®ãã¨ã¦ã楽ããã
ãã£ã¨ããã°ã©ãã³ã°ããã£ã¦ã¿ãããã¨æã£ã¦ãã¾ããã
ã§ããããå¤è¨èªå¦ç¿ã¨åæ§ã
å¾åãã«ãã¦ãã¦ãªããªãæãã¤ãããã¦ãã¾ããã§ããã
ãã®ã¾ã¾ã§ã¯ãããããããªãã¾ã¾ã«ãªãã¨æãã
ããã¤ãããã°ã©ãã³ã°æ室ã®ã³ã¼ã¹ç·¨æã調ã¹ã¦ã¿ãã¨ããã
ä¸è¬çã«åã©ãéãããã°ã©ãã³ã°å¦ã¶é çªã¨ãã¦Scratchã®æ¬¡ã¯Unity
ã¨ãã¦ããæ室ãå¤ãã£ãã®ã§ãUnityãå¦ãã§ã¿ããã¨ã«ãã¾ããã
Â
Â
ã¾ãã¨ã£ãããã¨ãã¦ã
Unityå
¥éãã¥ã¼ããªã¢ã«ã®ãç転ãã(Roll-a-ball)ã
ããã£ã¦ãã¾ãã
æ¨æ¥ã¾ã§ã«ãã¥ã¼ããªã¢ã«11ã¾ã§çµãã£ã¦ã
ä»æ¥ã¯ãã¥ã¼ããªã¢ã«12ãã«ã¡ã©ãåããã
ã«åãçµãã§ã¿ã¾ããã
Â
12-1. æã容æãªã«ã¡ã©ã®åããæ¹
ã¯ããªããªãã¯ãªã¢ã
Â
12-2. ãã¬ã¤ã¤ã¼ã追跡ããã°ã©ãã®ä½æ
ããã§ã¾ãè©°ã¾ã£ãã®ãããã¸ã§ã¯ããã©ã¦ã¶ã¨ããã¯ã¼ãããã£ããä½ã®ãã¨ã ãåãããããã£ã¨ç»é¢ãé
ã
ã¾ã§è¦ã¦æ¢ãã¦ãã¾ãããè¦ã¤ããããæ¤ç´¢ããã¨ãã¯ã¦ãªããã°ã®ã¨ããè¨äºã«ãã©ãçãç¡äºè§£æ±ºã
Â
12-3. ãã¬ã¤ã¤ã¼ã追跡ãã
ããã¯æ¬å½ã«åãããä½åº¦ãããç´ãã¾ããã
ã¤ã³ã¹ãã¯ã¿ãã¥ã¼ã®Variablesã«Targetã追å ããã®ã§ãã
ãã¾ããã¼ããä½ãã¾ããã
çµæããè¨ãã¨ãVariablesãä½ãå ´æãééã£ã¦ãã¾ããã
以åã®ãã¥ã¼ããªã¢ã«ã§Playerã®ã¤ã³ã¹ãã¯ã¿ã¼ãã¥ã¼ã§
Variablesãä½ã£ããã¨ããã£ãã®ã§ã
ããã ï¼ã¨æãè¾¼ãã§ãã¾ã£ã¦ã
ãã£ã¨Playerã®ã°ã©ãã«ãã¼ããä½ã£ã¦ãã¾ããã
ãã¾ããããããããã¾ããã
ãã®ã¬ãã«ãåãããªããããã®åå¿è
ã§ãã
ã§ãæ°ä»ããã®ã§ã
ããç´ãã¦ãã®ãã¥ã¼ããªã¢ã«ã¯ãã¾ãçµãããã¨ãã§ãã¾ããã
Unityã使ãããªãæ¥ã¯ãã¤ã«ãªããã®ããã
ããã§ãä»æ¥ã¯ã«ã¡ã©ãPlayerã«ã¤ãã¦åãã¨ããã¾ã§ã§ããã®ã§OKã¨ãã¾ãã
Â
Â