ºÇ½ª¹¹¿·¡§
orika_ex_miyako 2021ǯ03·î21Æü(Æü) 02:06:26ÍúÎò
Î㤨¤Ð¡¢¥¥ã¥é¤¬±¦Êý¸þ¤Ë°ÜÆ°¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢°ÜÆ°¥¢¥Ë¥á¤â±¦¤ò¸þ¤¤¤Æ¤¤¤ë¤â¤Î¤òºÆÀ¸¤µ¤»¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡°Ê²¼¤ÎÆâÍƤǽçÈ֤˼ÂÁõ¤ò¿Ê¤á¤Æ¤¤¤¤Þ¤¹¡£
¼ê½ç£¶¡¡¡¼¥×¥ì¥¤¥ä¡¼¥¥ã¥é¤Î°ÜÆ°¥¢¥Ë¥á¤ÎºîÀ®¡¼
£±£°¡¥¥×¥ì¥¤¥ä¡¼¥¥ã¥é¤Î°ÜÆ°¥¢¥Ë¥á¤òºîÀ®¤¹¤ë £±£±¡¥Animator ¥Ó¥å¡¼¤Ë¤Æ¥¹¥Æ¡¼¥È¤ÎÁ«°Ü¤ÎÀßÄê¤ò¹Ô¤¦
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦¥¢¥Ë¥á¡¼¥·¥ç¥ó´ØÏ¢¡ÊAnimator¥Ó¥å¡¼¡¢¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Î¥¹¥Æ¡¼¥È¡¢¥È¥é¥ó¥¸¥·¥ç¥ó¡¢¥Ñ¥é¥á¡¼¥¿¡Ë ¡¡¡¦Blend Tree ¤Ë¤è¤ë¥×¥ì¥¤¥ä¡¼¤Î°ÜÆ°¤È°ÜÆ°¥¢¥Ë¥á¡¼¥·¥ç¥ó¤È¤ÎƱ´ü½èÍý¤Ë¤Ä¤¤¤Æ
¡¡¥¥ã¥é¤Ï°ÜÆ°¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¤¬¡¢¸½ºß¤Ï°ÜÆ°¥¢¥Ë¥á¤¬£±¼ïÎà¤Ç¤¢¤ë¤¿¤á¡¢¤¤¤º¤ì¤ÎÊý¸þ¤Ë°ÜÆ°¤·¤Æ¤âƱ¤¸¥¢¥Ë¥á¤¬ºÆÀ¸¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡£²£Ä¤Î¥²¡¼¥à²èÌ̤˥¥ã¥é¤òɽ¼¨¤µ¤»¤ë¾ì¹ç¤Ï¼ç¤Ë£´¤Ä¤ÎÊý¸þ¤Î²èÁü¤ä¥¢¥Ë¥á¤ò½àÈ÷¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¤³¤ì¤é¤ò½½»ú¥¡¼¤ÎÊý¸þÆþÎϤ˹ç¤ï¤»¤ë¤³¤È¤Ç¡¢¿Ê¹ÔÊý¸þ¤È¥¥ã¥é¤Î²èÁü¡¦¥¢¥Ë¥á¤òƱ´ü¤µ¤»¤Æ°ãÏ´¶¤ò¤Ê¤¯¤¹É¬Íפ¬¤¢¤ê¤Þ¤¹¡£
¡¡¤Þ¤º¤ÏºÇ½é¤Ë¡¢»Ä¤ê¤Î£³Êý¸þʬ¤Î°ÜÆ°¥¢¥Ë¥á¤òºîÀ®¤·¡¢¤½¤ì¤ò°ÜÆ°¤ÎÊý¸þ¤Ë¹ç¤ï¤»¤ÆÀ©¸æ¤Ç¤¤ë¤è¤¦¤Ë
Blend Tree ¤È¤¤¤¦ Unity ¤Î»ý¤Ä¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Îµ¡Ç½¤òÍøÍѤ·¤Æ¡¢Êý¸þÆþÎϤÈƱ´ü¤Ç¤¤ë¤è¤¦¤ËÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡¥²¡¼¥à¤Ç¤Ï¤³¤Î¤è¤¦¤Ë¡¢¥×¥ì¥¤¥ä¡¼¤ÎÁàºî¾õ¶·¤òÈ¿±Ç¤·¤Æ¡¢¥¥ã¥é¤Î¹ÔÆ°¤âÊѲ½¤·¤Þ¤¹¤Î¤Ç¡¢¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎºÆÀ¸¤â¤½¤ì¤ËƱ´ü¤¹¤ë¤è¤¦¤ËÀ©¸æ¤¬É¬Íפˤʤê¤Þ¤¹¡£
¡¡À©¸æÌ¿Îá¤Ë¤Ä¤¤¤Æ¤Ï¼¡¤Î¼ê½ç¤Ç¼ÂÁõ¤ò¹Ô¤¤¤Þ¤¹¤Î¤Ç¡¢¤³¤Î¼ê½ç¤Ç¤Ï°ÜÆ°¥¢¥Ë¥á¤ÎºîÀ®¤È¡¢¤½¤ÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡¼ê½ç¤ÏÁ°²ó¡¢¥¥ã¥é¤òºîÀ®¤·¤¿¾ì¹ç¤ÈƱ¤¸¤Ë¤Ê¤ê¤Þ¤¹¡£
Ê£¿ô¤ÎƱ¤¸¼ïÎà¤Î²èÁü¤ò¤Þ¤È¤á¤Æ¥Ò¥¨¥é¥ë¥¡¼¤Ë¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢
¤½¤Î²èÁü¤òÍøÍѤ·¤¿¥¢¥Ë¥á¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£
¡¡¤³¤ì¤ò¡¢¸½ºß¤ÎÊý¸þ°Ê³°¤Î£³Êý¸þʬ¡¢ºîÀ®¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡Unity ¤Ë¥¤¥ó¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¥¥ã¥é¤Î²èÁü¤ÎÃ椫¤é¡¢Æ±¤¸Êý¸þ¤ò¸þ¤¤¤Æ¤¤¤ë²èÁü¤Î¥Õ¥¡¥¤¥ë¤ò¤Þ¤È¤á¤ÆÁªÂò¤·¤Þ¤¹¡£
ºÇ½é¤Ë¥¥ã¥é¤òºîÀ®¤¹¤ëºÝ¤Ë¹Ô¤Ã¤¿ÊýË¡¤ÈƱ¤¸¤Ç¤¹¡£
¡¡¤¿¤È¤¨¤Ð¡¢º¸Êý¸þ¤ò¸þ¤¤¤Æ¤¤¤ë²èÁü¤¬£³¼ïÎढ¤ë¤Î¤Ç¤¢¤ì¤Ð¡¢¤½¤ì¤ò£³¤Ä¤Þ¤È¤á¤ÆÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
¤Þ¤È¤á¤ÆÁªÂò¤¹¤ëÊýË¡¤Ï Ctrl ¥¡¼¤ò²¡¤·¤Ê¤¬¤éº¸¥¯¥ê¥Ã¥¯¤Ç¤¹¡£
²èÁü¥Õ¥¡¥¤¥ë¤ÎÁªÂò
![](https://image02.seesaawiki.jp/i/o/i-school-memo/kI2fieAfHS.png)
ÁªÂò»þ¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/jXVqvqhY4c.png)
¡¡ÁªÂò¤·¤¿¥Õ¥¡¥¤¥ë¤ò¤½¤Î¤Þ¤Þ¥Ò¥¨¥é¥ë¥¡¼¤Ë¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Þ¤¹¡£
Create New Animation ¤È¤¤¤¦¥¦¥¤¥ó¥É¥¦¤¬³«¤¤Þ¤¹¡£
Create New Animation¡¡¥¦¥¤¥ó¥É¥¦
![](https://image02.seesaawiki.jp/i/o/i-school-memo/GyfdKzfJsi.png)
¡¡¥Õ¥¡¥¤¥ë̾¤Ë¡¢Êý¸þ¤Î̾¾Î¤òÆþ¤ì¤Æ¡¢ player_left.anim ¤ä¡¢player_right.anim ¤ËÊѹ¹¤·¤ÆÊݸ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
ÊݸÀè¤Ë¤Ï Animations ¤Î¤è¤¦¤Ê¥Õ¥©¥ë¥À¤òºîÀ®¤·¤Æ¤ª¤¤¤Æ¡¢¤½¤ÎÃæ¤ËÊݸ¤¹¤ë¤è¤¦¤Ë¤¹¤ë¤È´ÉÍý¤·¤ä¤¹¤¯¤Ê¤ê¤Þ¤¹¡£
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Ë²èÁü¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î¥Õ¥¡¥¤¥ë̾¤ÈƱ¤¸Ì¾¾Î¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£
(Ê£¿ô¤Î²èÁü¤Î¾ì¹ç¡¢¼«Æ°Åª¤ËÀèƬ¤Î¥Õ¥¡¥¤¥ë̾¤ò»ý¤Ä¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ê¤ê¤Þ¤¹)
¥Ò¥¨¥é¥ë¥¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/bkte6e03lc.png)
¡¡°ÜÆ°ÍѤΥ¢¥Ë¥á¤òºîÀ®¤¹¤ë¤³¤È¤¬ÌÜŪ¤Ç¤¹¤Î¤Ç¡¢¥Ò¥¨¥é¥ë¥¡¼¤ËºîÀ®¤µ¤ì¤¿¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ïºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡£
¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÏºîÀ®¤µ¤ì¤Æ¤¤¤ë¤Î¤ÇÌäÂꤢ¤ê¤Þ¤»¤ó¡£
¡¡¾åµ¤Î¼ê½ç¤ò·«¤êÊÖ¤·¤Æ¡¢¹ç·×¤Ç£´Êý¸þʬ¤Î°ÜÆ°¥¢¥Ë¥á¤òºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£
²èÁü¥Õ¥¡¥¤¥ëÁªÂò»þ¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü¡
![](https://image01.seesaawiki.jp/i/o/i-school-memo/1Fj60JD8mo.png)
²èÁü¥Õ¥¡¥¤¥ëÁªÂò»þ¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü¢
![](https://image01.seesaawiki.jp/i/o/i-school-memo/orTFFWDj3Z.png)
¡¡¹ç·×¤Ç¡¢AnimationClip ¤¬£´¥Õ¥¡¥¤¥ë¡¢Animator Controller ¤¬£´¥Õ¥¡¥¤¥ëºîÀ®¤µ¤ì¤Þ¤¹¡£
¥Õ¥©¥ë¥À
![](https://image01.seesaawiki.jp/i/o/i-school-memo/XKlkq3C5E5.png)
¡¡°Ê¾å¤Ç°ÜÆ°ÍѤΥ¢¥Ë¥á¤ÎºîÀ®¤Ï´°Î»¤Ç¤¹¡£
¡¡ºîÀ®¤·¤¿°ÜÆ°ÍѤΥ¢¥Ë¥á¤òÅÐÏ¿¤·¡¢¾ò·ï¤Ë¹ç¤ï¤»¤ÆÁ«°Ü(ÀÚ¤êÂؤ¨)¤Ç¤¤ë¤è¤¦¤ËÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤Ï±ü¤¬¿¼¤¤¤¿¤á¡¢¤³¤³¤Ç¤Ï¼ê½ç¤ËɬÍפʾðÊó¤À¤±¤ò¥Ô¥Ã¥¯¥¢¥Ã¥×¤·¤Æµ½Ò¤·¤Æ¤¤¤Þ¤¹¡£
¡¡¤Þ¤¿¡¢Unity ¤Ë¤Ï Animator ¤È Animation ¤È¤¤¤¦µ¡Ç½¤¬¤¢¤ê¡¢Ì¾Á°¤Ï»÷¤Æ¤¤¤Þ¤¹¤¬¡¢°Û¤Ê¤ëµ¡Ç½¤Ë¤Ê¤ê¤Þ¤¹¡£
¤½¤¦¤¤¤Ã¤¿Ì¾¾Î¤Î°ã¤¤¤«¤é¤â¤ï¤«¤ë¤è¤¦¤Ë¡¢´Ö°ã¤¨¤Æ³Ð¤¨¤Æ¤·¤Þ¤¦¤Èǧ¼±¤ò½¤Àµ¤¹¤ë¤³¤È¤¬ÂçÊѤˤʤê¤Þ¤¹¤Î¤Ç¡¢
¤·¤Ã¤«¤ê¤È¤ï¤«¤ë¤Þ¤ÇÉü½¬¤ò¤·¤Æ¡¢Àµ¤·¤¤Ã챤ò³Ð¤¨¤Æ¤¤¤Ã¤Æ¤¯¤À¤µ¤¤¡£
¡¡Unity ¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ë¤è¤Ã¤Æ¡¢¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤ò¹Ô¤Ã¤Æ¤¤¤ë¾ðÊó¤ò Animation Controller ¤È¤¤¤¤¤Þ¤¹¡£
¤³¤ì¤Ï¡¢Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Controller ¥×¥í¥Ñ¥Æ¥£¤ËÀßÄê¤ò¤¹¤ë¤³¤È¤Ç¡¢¤½¤Î Controller ¤Î¾ðÊó¤¬Å¬ÍѤµ¤ì¤Þ¤¹¡£
¡¡£±¤Ä£±¤Ä¤Î¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Î¾ðÊó¤Ï¡¢Animation Clip ¤È¤¤¤¦¾ðÊó¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î¾ðÊó¤ò State ¤È¤¤¤¦ÉôÉʤ˳ä¤êÅö¤Æ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢ºÆÀ¸¤¹¤ë¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄ꤬¹Ô¤¨¤Þ¤¹¡£
¡¡State Ʊ»Î¤ÏÌð°õ¤Ë¤è¤Ã¤Æ¤Ä¤Ê¤²¤Æ¤¤¤¯¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤³¤ÎÌð°õ¤ò¥È¥é¥ó¥¸¥·¥ç¥ó¤È¤¤¤¤¤Þ¤¹¡£
¥È¥é¥ó¥¸¥·¥ç¥ó¤Î¤¢¤ë State Ʊ»Î¤Î¤ß¤¬Á«°Ü¤ò¹Ô¤Ã¤Æ¡¢ºÆÀ¸¤¹¤ë¥¢¥Ë¥á¡¼¥·¥ç¥ó¤¬ÀÚ¤êÂؤï¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¤³¤ì¤¬°ìÈÌŪ¤Ê¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤Ç¤¹¡£
¡¡º£²ó¤Ï¤³¤ÎÊýË¡¤Ç¤Ï¤Ê¤¯¡¢Blend Tree ¤È¤¤¤¦¼êË¡¤òÍøÍѤ·¤Þ¤¹¡£
¡¡Blend Tree ¤Ç¤Ï¡¢Ê£¿ô¤Î°Û¤Ê¤ë¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤ò£±¤Ä¤Î State Æâ¤ÇÀßÄꤹ¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢°ÜÆ°¤Î¥¢¥Ë¥á¤ò¸ÄÊ̤ˣ´¤ÄÀßÄꤷ¤Æ¡¢¤½¤ì¤¾¤ì¤ò¥È¥é¥ó¥¸¥·¥ç¥ó¤Ç¤Ä¤Ê¤²¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢
Blend Tree Æâ¤Ë£´¤Ä¤Î°ÜÆ°ÍѤΥ¢¥Ë¥á¤òÅÐÏ¿¤·¡¢¤¤¤º¤ì¤«¤Î°ÜÆ°ÍѤΥ¢¥Ë¥á¤òºÆÀ¸¤µ¤ì¤ë¤È¤¤¤¦ÊýË¡¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡Unity¤Îº¸¾å¤Ë¤¢¤ë¥á¥Ë¥å¡¼¤ÎÃ椫¤é Window => Animation => Animator ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Scene¥Ó¥å¡¼¤äGame¥Ó¥å¡¼¤Î¤è¤¦¤Ê Animator¥Ó¥å¡¼¤¬¥¨¥Ç¥£¥¿¡¼¤Î¥ì¥¤¥¢¥¦¥ÈÆâ¤ËÄɲ䵤ì¤Þ¤¹¡£
Animator¥Ó¥å¡¼
![](https://image01.seesaawiki.jp/i/o/i-school-memo/b_S4QUXumz.png)
¡¡
¡¡¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀÚ¤êÂؤ¨¤ÎÀßÄê¤Ï¡¢¤³¤ÎAnimator¥Ó¥å¡¼¤ÎÃæ¤Ç¹Ô¤¤¤Þ¤¹¡£
ÀßÄê¤ò¹Ô¤¦¤¿¤á¤Ë¤Ï¡¢ÂоݤȤʤ륲¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥Ò¥¨¥é¥ë¥¡¼¤ÇÁªÂò¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë Player ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤¿¾õÂ֤ˤ·¤Æ¤¯¤À¤µ¤¤¡£(¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ë¾õÂÖ)
¤³¤Î¾õÂ֤ˤʤë¤È¡¢Player ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¡¢Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥ÈÆâ¤Ë¤¢¤ë¡¢Controller ¥×¥í¥Ñ¥Æ¥£¤Î¾ðÊó¤¬ Animator ¥Ó¥å¡¼ ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥È
![](https://image01.seesaawiki.jp/i/o/i-school-memo/ZXcRcidfdJ.png)
¡¡Animator¥Ó¥å¡¼¤ÎÁàºî¤Ç¤¹¤¬¡¢¥Þ¥¦¥¹¤Î¥Û¥¤¡¼¥ë¥Ü¥¿¥ó¤ò²¡¤·¤Ê¤¬¤é¥Þ¥¦¥¹¤ò°ÜÆ°¤µ¤»¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢Animator¥Ó¥å¡¼¤ÎÃæ¤ò°ÜÆ°¤Ç¤¤Þ¤¹¡£
¡ã¼ê½çÆ°²è¡¡Animator¥Ó¥å¡¼Æâ¤Î°ÜÆ°¡ä
https://gyazo.com/510206fa1deadd134b48a20084193633
¡¡¥¢¥Ë¥á¤Î¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë AnimationClip ¤Ç¤¹¤¬¡¢¤³¤Á¤é¤Ï State ¤È¤¤¤¦¾ðÊó¤Î Motion ¤Ë£±¤Ä¤À¤±ÅÐÏ¿¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¤³¤Î State ´Ö¤òÁ«°Ü¤·¤Æ¡¢¥¢¥Ë¥á¤ÎÀÚ¤êÂؤ¨¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¤³¤Î¤È¤¡¢State ¤Ë¤ÏÁ«°Ü¤¹¤ë¤¿¤á¤Î¾ò·ï¤òÀßÄꤷ¤Æ¤ª¤¯¤³¤È¤¬½ÐÍè¤Þ¤¹¡£(̵¾ò·ï¤â²Äǽ¤Ç¤¹)
Î㤨¤Ð¡¢¤É¤¦¤¤¤Ã¤¿¾õÂ֤ˤʤ俤Ȥ¤Ë¡¢¤³¤Î¥¢¥Ë¥á¤ÎºÆÀ¸¤ò¤·¤Æ¤Û¤·¤¤¡¢¤È¤¤¤¦¾ðÊó¤ò Animator ¥Ó¥å¡¼Æâ¤Ç»öÁ°¤ËÅÐÏ¿¤·¤Æ¤ª¤¯¤³¤È¤Ë¤è¤ê¡¢
¤½¤Î¾ò·ï¼°¤ò¥¹¥¯¥ê¥×¥ÈÆâ¤ÇÀ©¸æ¤·¡¢¥¢¥Ë¥á¤ÎºÆÀ¸¤ÈƱ´ü¤µ¤»¤ë¤³¤È¤¬½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡º£²ó¤Ï¡¢¥¥ã¥é¤Î°ÜÆ°¤Î¥¡¼ÆþÎϤ˹ç¤ï¤»¤Æ¡¢¥¢¥Ë¥á¤ÎºÆÀ¸¤òÀ©¸æ¤¹¤ëÀ߷פˤ·¤Þ¤¹¤Î¤Ç¡¢
¥¡¼ÆþÎϤÈƱ¤¸¤è¤¦¤Ë¡¢X ¼´¤È Y ¼´¤Î¾ðÊó¤ò¾ò·ï¼°¤È¤·¤ÆÍÑ°Õ¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡¡¾ò·ï¼°¤È¤·¤Æ¡¢Animator ¤Ç¤Ï¡¢Parameter(¥Ñ¥é¥á¡¼¥¿) ¤òºîÀ®¤·¤Æ¡¢ÀßÄꤹ¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¡£
¡¡¥Ñ¥é¥á¡¼¥¿¤È¤Ï¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎºÆÀ¸¤Î¾õÂÖ¤òÀßÄꤹ¤ë¤â¤Î¤Ç¤¹¡££´¤Ä¤Î¼ïÎब¤¢¤ê¡¢º£²ó¤Ï Float ·¿¤ò¿·¤·¤¯ºîÀ®¤·¤Þ¤¹¡£
Animator¥Ó¥å¡¼¤Î¤¹¤°²¼¤Ë Parameters ¤È¤¤¤¦¹àÌܤ¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤ÎÃæ¤Ë¤¢¤ë¥×¥é¥¹¥Ü¥¿¥ó¤òÁªÂò¤·¡¢Float ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Parameters²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/G0kV9WRLl7.png)
¡ã¼ê½çÆ°²è¡¡¥Ñ¥é¥á¡¼¥¿¤ÎÅÐÏ¿¡ä
https://gyazo.com/63c7dac793d657c067a1b27afdad7c81
¡¡Parameters¤ÎÃæ¤Ë¿·¤·¤¤¥Ñ¥é¥á¡¼¥¿¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò Look X ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
Float·¿¤Î¾ì¹ç¡¢Ì¾Á°¤Î±¦Â¦¤Ë 0.0 ¤È¤¤¤¦¿ô»ú¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£(¤³¤ÎÉôʬ¤¬·¿¤Ë¤è¤Ã¤ÆÊѲ½¤·¡¢¼ïÎà¤ÎÆÃÄ꤬ÍưפˤʤäƤ¤¤Þ¤¹)
¡¡Æ±¤¸¼ê½ç¤Ç¡¢¤â¤¦°ìÅ٥ץ饹¥Ü¥¿¥ó¤òÁªÂò¤·¡¢Æ±¤¸¤¯ Float ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Parameters¤ÎÃæ¤Ë¿·¤·¤¤¥Ñ¥é¥á¡¼¥¿¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò Look Y ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
Parameters¤Ë¥Ñ¥é¥á¡¼¥¿¤òÄɲä·¤¿¸å¤Î²èÁü(Speed ¤Ï̵»ë¤·¤Æ¤¯¤À¤µ¤¤)
![](https://image02.seesaawiki.jp/i/o/i-school-memo/vnrH9MmtNj.png)
¡¡Animator ¥Ó¥å¡¼Æâ¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Create State => From New Blend Tree ¤òÁªÂò¤·¤Þ¤¹¡£
¿·¤·¤¤ State ¤È¤·¤Æ Blend Tree ¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£ÁªÂò¤¹¤ë¤È¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤«¤é̾¾Î¤¬Êѹ¹¤Ç¤¤Þ¤¹¤Î¤Ç¡¢Moving ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
Animator ¥Ó¥å¡¼
![](https://image02.seesaawiki.jp/i/o/i-school-memo/P1UjV_BszE.png)
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/BKjumCS2yJ.png)
¡¡Entry ¤Î State ¤òÁªÂò¤·¤Æ¡¢±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Set StateMachine Default State ¤òÁªÂò¤·¤Þ¤¹¡£
¥²¡¼¥à³«»Ï»þ¤Î½é´ü¤Î¥¢¥Ë¥á¤ÎºÆÀ¸ State ¤òÀßÄê¤Ç¤¤Þ¤¹¤Î¤Ç¡¢ºîÀ®¤·¤¿ Moving ¤ËÌð°õ¤ò·Ò¤²¤Æº¸¥¯¥ê¥Ã¥¯¤·¤Æ·èÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤³¤ì¤Ç¥²¡¼¥à³«»Ï¤ÈƱ»þ¤Ë Blend Tree Æâ¤Î°ÜÆ°¥¢¥Ë¥á¤¬ºÆÀ¸¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
Animator ¥Ó¥å¡¼
![](https://image01.seesaawiki.jp/i/o/i-school-memo/Afz8VkuBOf.png)
¡¡
¡¡Blend Tree ¤ò¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£Animator ¥Ó¥å¡¼¤ÎÆâÍƤ¬ Blend Tree ¤Î¾ÜºÙÀßÄê¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤¤ë¾õÂÖ¤ËÀÚ¤êÂؤï¤ê¤Þ¤¹¡£
Á°¤Î²èÌ̤ËÌá¤ë¾ì¹ç¤Ë¤Ï¡¢º¸¾å¤Ë¤¢¤ë Base Layer ¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£
Blend Tree ¤ÎÊÔ½¸²èÌÌ
![](https://image01.seesaawiki.jp/i/o/i-school-memo/sLJJkj31bL.png)
¡¡
¡¡¸½ºß¡¢Blend Tree ¤ÎÃæ¤Ë Look X ¤Î¤ß¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¡£
¤³¤ì¤Ï Blend Type ¤È¤¤¤¦ÀßÄ꤫¤éÊѹ¹¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Î¾åÃʤˤ¢¤ë Blend Type ¤ò 2D Simple Directional ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¤¹¤°²¼¤Î Parameters ¤¬£±¤Ä¤«¤é£²¤Ä¤ËÊѹ¹¤µ¤ì¤Þ¤¹¡£
ξÊý¤È¤â Look X ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢±¦Â¦¤ò Look Y ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤Î¾õÂ֤ˤʤë¤È¡¢Animator ¥Ó¥å¡¼Æâ¤Î Blend Tree ¤Î¹àÌܤ¬ Look X ¤È Look Y ¤Î£²¤Ä¤ËÊѹ¹¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¤³¤Î£²¤Ä¤ÎÃͤξðÊó¤òÍøÍѤ·¤Æ¡¢¥¢¥Ë¥á¤ÎºÆÀ¸¤òÀÚ¤êÂؤ¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡¢¤È¤¤¤¦ÀßÄê¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡
Animator ¥Ó¥å¡¼
![](https://image02.seesaawiki.jp/i/o/i-school-memo/3tJfuqHnrr.png)
¡¡Blend Tree ¤Ç¤ÏÄ̾ï¤Î¥È¥é¥ó¥¸¥·¥ç¥ó¡ÊÁ«°Ü¡Ë¤Î¤è¤¦¤Ë¡¢Ìð°õ¤Ç State Ʊ»Î¤ò¤Ä¤Ê¤¤¤Ç¥¢¥Ë¥á¤ÎºÆÀ¸ÀÚ¤êÂؤ¨¤òÀßÄꤷ¤Ê¤¤Âå¤ï¤ê¤Ë
Blend Tree Æâ¤ÇÀßÄê¤ò¤·¤¿ Parameter(Look X ¤È Look Y) ¤ÎÃͤ¬¤É¤ÎÃͤˤʤäƤ¤¤ë¤«¤Ë¤è¤Ã¤Æ¡¢¥¢¥Ë¥á¤ÎºÆÀ¸¤ÎÀÚ¤êÂؤ¨¤ÎÀßÄê¤ò¹Ô¤¦¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡Blend Tree ¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Ë¤¢¤ë Motion ¤Î¹àÌܤ¬ List is Empty ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¡£
¤³¤³¤ËºÆÀ¸¤ò¹Ô¤¤¤¿¤¤Ê£¿ô¤Î¥¢¥Ë¥á¤òÅÐÏ¿¤·¡¢ºÆÀ¸¤¹¤ë¤¿¤á¤Î¾ò·ï¼°¤òÀßÄê½ÐÍè¤Þ¤¹¡£
¡¡Motion Æâ¤Î±¦²¼¤Ë¤¢¤ë¥×¥é¥¹¥Ü¥¿¥ó¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£¥á¥Ë¥å¡¼¤¬É½¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Add Motion Field ¤òÁªÂò¤·¤Þ¤¹¡£
Animation Clip ¤òÁªÂò¤¹¤ë¥¦¥¤¥ó¥É¥¦¤¬³«¤¤Þ¤¹¤Î¤Ç¡¢player_front ¤ÎAnimation Clip ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤ì¤Ç Motion Æâ¤ËºÆÀ¸¤¹¤ë¥¢¥Ë¥á¤Î¸õÊä¤È¤·¤ÆÅÐÏ¿¤µ¤ì¤Þ¤¹¡£Animator ¥Ó¥å¡¼Æâ¤Ë¤â¡¢Blend Tree ¤È¤Ä¤Ê¤¬¤ë State ¤¬Äɲ䵤ì¤Þ¤¹¡£
¡ã¼ê½çÆ°²è¡¡Motion ¤Ë AnimationClip ¤òÄɲ乤ë¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
Blend Tree ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/875FOOhgkE.png)
Animation ¥Ó¥å¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/PjgNcpy9Ph.png)
¡¡Äɲ䵤줿 Motion ¤Ë¾ò·ï¤òÀßÄꤷ¤Þ¤¹¡£
¤³¤Î¤È¤¤ËÍøÍѤ¹¤ë¤Î¤¬¡¢Parameter ¤Ç¤¢¤ë Look X ¤È Look Y ¤Î¾ðÊó¤Ë¤Ê¤ê¤Þ¤¹¡£
Blend Tree ¤Ç¤Ï¡¢¤³¤Î Parameter ¤ÎÃͤ¬¡¢Motion Æâ¤Î Pos X ¤È Pos Y ¤ÈƱ´ü¤¹¤ëÀßÄê¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¿·¤·¤¯Äɲä·¤¿ player_front ¤ÎÀßÄê¤ò¡¢Pos X = 0¡¢Pos Y = -0.5f ¤ËÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¥¡¼ÆþÎϤΤ¦¤Á¡¢²¼Êý¸þ¤Î°ÜÆ°¤Ï Y ¼´¤ò¥Þ¥¤¥Ê¥¹Êý¸þ¤ÎÃͤ¬¼èÆÀ¤Ç¤¤Þ¤¹¤Î¤Ç¡¢Y Êý¸þ¤ÎÃͤÈƱ´ü¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
Blend Tree ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/kL47mrfefz.png)
¡¡¤Ç¤Ï¡¢»Ä¤ê¤Î£³¤Ä¤Î Animation Clip ¤Ë¤Ä¤¤¤Æ¤â¡¢Motion Æâ¤ËÄɲ䷤Ƥ¤¤¤Þ¤·¤ç¤¦¡£
Äɲ乤ë½çÈÖ¤ÏǤ°Õ¤Ç¤¹¡£²¼µ¤Î²èÁü¤Î¤è¤¦¤Ë¡¢Pos X ¤È Pos Y ¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
³ÆÊý¸þ¤ÈÃͤ¬Æ±´ü¤¹¤ë¤³¤È¤¬ÂçÀڤǤ¹¡£
Blend Tree ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/nDjeIr02i5.png)
Animator ¥Ó¥å¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/5xaPfhEJEo.png)
¡¡£²¤Ä°Ê¾å¤Î Motion ¤¬Äɲ䵤ì¤ë¤È¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Î Parameter ¤Î²¼¤Ë¡¢Blend ¤¹¤ëÃͤΰÌÃÖ¤¬ÀĤ¤É©·Á¤Çɽ¼¨¤µ¤ì¤Þ¤¹¡£
¸½ºß¤Ï£´¤Ä¤ÎÅÀ¤¬¡¢¾å²¼º¸±¦¤Ë£±¤Ä¤º¤Ä¸ºß¤·¤Æ¤¤¤ë¾õÂ֤ˤʤäƤ¤¤ë¤Ï¤º¤Ç¤¹¡£
¡¡¤Ç¤Ï¡¢Blend Tree ¤Ë¤è¤ë¡¢¥¢¥Ë¥á¤ÎÀ©¸æ¤ò¼ÂºÝ¤Ë»î¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Î°ìÈÖ²¼¤Ë¤¢¤ë Blend Tree ¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¡¢¥¢¥Ë¥á¤Î¥×¥ì¥Ó¥å¡¼¤òɽ¼¨¤·¤Þ¤¹¡£
¡¡ºÆÀ¸¥Ü¥¿¥ó¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£ÀµÌ̤ò¸þ¤¤¤Æ¤¤¤ë¥¢¥Ë¥á¤¬ºÆÀ¸¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢
Parameter ¤Î²¼¤Ë¤¢¤ë£´¤Ä¤ÎÅÀ¤ÎÃæ±û¤Ë¤¢¤ëÀÖ¤¤´Ý¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¡¢¤¤¤º¤ì¤«¤ÎĺÅÀ¤Ë°ÜÆ°¤µ¤»¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¤½¤ÎÊý¸þ¤Î¥¢¥Ë¥á¤ÎºÆÀ¸¤ËÀÚ¤êÂؤï¤ê¤Þ¤¹¡£
¡ãBlend Tree ¤Îµ¡Ç½¤Î³Îǧ¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡¤³¤ì¤¬ Blend Tree ¤òÍøÍѤ·¤¿¥¢¥Ë¥á¤ÎÀ©¸æ½èÍý¤Ë¤Ê¤ê¤Þ¤¹¡£
Animator ¥Ó¥å¡¼¤â°ì½ï¤Ë³Îǧ¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤Ë¹ç¤ï¤»¤Æ¡¢Look X ¤È Look Y ¤ÎÃͤ¬Æ°¤¤¤Æ¤¤¤ë¤³¤È¤¬Ê¬¤«¤ê¤Þ¤¹¡£
¡¡º£²ó¤Ï¡¢Blend Tree Æâ¤Î Parameter ¤ÎÀßÄê¤È¤·¤Æ¡¢Motion Æâ¤Î Pos X ¤È Pos Y ¤ËÆþ¤ëÃͤò Look X ¤È Look Y ¤ÎÃͤ˻ØÄꤷ¤Æ¤¤¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢¥¥ã¥é¤Î°ÜÆ°¤·¤¿ºÝ¤Î¥¡¼ÆþÎϤÎÃͤò¡¢¤³¤Î Look X ¤È Look Y ¤Ë³ä¤êÅö¤Æ¤ë¤³¤È¤¬½ÐÍè¤ì¤Ð¡¢¥¹¥¯¥ê¥×¥È¤«¤é¡¢¤³¤Î Blend Tree Æâ¤Î¥¢¥Ë¥á¤ÎÀ©¸æ¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡¼¡¤Î¼ê½ç¤Ç¤Ï¡¢¤³¤Î¥í¥¸¥Ã¥¯¤ò»È¤Ã¤¿Á«°Ü¤ÎÀ©¸æ¤ò¡¢¥¹¥¯¥ê¥×¥È»È¤Ã¤ÆÀÚ¤êÂؤ¨¤ë¤è¤¦¤Ë¤·¤Æ¡¢¥¥ã¥é¤Î°ÜÆ°¤È°ÜÆ°¤Î¥¢¥Ë¥á¡¼¥·¥ç¥ó¤È¤òɳ¤Å¤±¤·¤Æ¤¤¤¤Þ¤¹¡£
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡¼¡¤Ï¡¡¼ê½ç£·¡¡¡Ý¥×¥ì¥¤¥ä¡¼¥¥ã¥é¤Î°ÜÆ°¥¢¥Ë¥á¤ÎƱ´ü¡Ý¡¡¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯