ºÇ½ª¹¹¿·¡§ orika_ex_miyako 2022ǯ05·î26Æü(ÌÚ) 16:58:39ÍúÎò
Î㤨¤Ð¡¢¥¥ã¥é¤¬±¦Êý¸þ¤Ë°ÜÆ°¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢°ÜÆ°¥¢¥Ë¥á¤â±¦¤ò¸þ¤¤¤Æ¤¤¤ë¤â¤Î¤òºÆÀ¸¤µ¤»¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡ã¼ÂÁõÆ°²è¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡°Ê²¼¤ÎÆâÍƤǽçÈ֤˼ÂÁõ¤ò¿Ê¤á¤Æ¤¤¤¤Þ¤¹¡£
¼ê½ç£¸¡¡¡¼¥×¥ì¥¤¥ä¡¼¥¥ã¥é¤Î°ÜÆ°¥¢¥Ë¥á¤ÎÀßÄ꡼
£±£±¡¥Animator ¥Ó¥å¡¼¤Ë¤Æ¥¹¥Æ¡¼¥È¤ÎÁ«°Ü¤ÎÀßÄê¤ò¹Ô¤¦
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦¥¢¥Ë¥á¡¼¥·¥ç¥ó´ØÏ¢¡ÊAnimator¥Ó¥å¡¼¡¢¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Î¥¹¥Æ¡¼¥È¡¢¥È¥é¥ó¥¸¥·¥ç¥ó¡¢¥Ñ¥é¥á¡¼¥¿¡Ë ¡¡¡¦Blend Tree ¤Ë¤è¤ë¥×¥ì¥¤¥ä¡¼¤Î°ÜÆ°¤È°ÜÆ°¥¢¥Ë¥á¡¼¥·¥ç¥ó¤È¤ÎƱ´ü½èÍý¤Ë¤Ä¤¤¤Æ
¡¡ºîÀ®¤·¤¿°ÜÆ°ÍѤΥ¢¥Ë¥á¤òÅÐÏ¿¤·¡¢¾ò·ï¤Ë¹ç¤ï¤»¤ÆÁ«°Ü(ÀÚ¤êÂؤ¨)¤Ç¤¤ë¤è¤¦¤ËÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤Ï±ü¤¬¿¼¤¤¤¿¤á¡¢¤³¤³¤Ç¤Ï¼ê½ç¤ËɬÍפʾðÊó¤À¤±¤ò¥Ô¥Ã¥¯¥¢¥Ã¥×¤·¤Æµ½Ò¤·¤Æ¤¤¤Þ¤¹¡£
¡¡¤Þ¤¿¡¢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¥Ó¥å¡¼
¡¡
¡¡¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀÚ¤êÂؤ¨¤ÎÀßÄê¤Ï¡¢¤³¤ÎAnimator¥Ó¥å¡¼¤ÎÃæ¤Ç¹Ô¤¤¤Þ¤¹¡£
ÀßÄê¤ò¹Ô¤¦¤¿¤á¤Ë¤Ï¡¢ÂоݤȤʤ륲¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥Ò¥¨¥é¥ë¥¡¼¤ÇÁªÂò¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë Player ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤¿¾õÂ֤ˤ·¤Æ¤¯¤À¤µ¤¤¡£(¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ë¾õÂÖ)
¤³¤Î¾õÂ֤ˤʤë¤È¡¢Player ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¡¢Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥ÈÆâ¤Ë¤¢¤ë¡¢Controller ¥×¥í¥Ñ¥Æ¥£¤Î¾ðÊó¤¬ Animator ¥Ó¥å¡¼ ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥È
¡¡Animator¥Ó¥å¡¼¤ÎÁàºî¤Ç¤¹¤¬¡¢¥Þ¥¦¥¹¤Î¥Û¥¤¡¼¥ë¥Ü¥¿¥ó¤ò²¡¤·¤Ê¤¬¤é¥Þ¥¦¥¹¤ò°ÜÆ°¤µ¤»¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢Animator¥Ó¥å¡¼¤ÎÃæ¤ò°ÜÆ°¤Ç¤¤Þ¤¹¡£
¡ã¼ê½çÆ°²è¡¡Animator¥Ó¥å¡¼Æâ¤Î°ÜÆ°¡ä
https://gyazo.com/510206fa1deadd134b48a20084193633
¡¡¥¢¥Ë¥á¤Î¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë AnimationClip ¤Ç¤¹¤¬¡¢¤³¤Á¤é¤Ï State ¤È¤¤¤¦¾ðÊó¤Î Motion ¤Ë£±¤Ä¤À¤±ÅÐÏ¿¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¤³¤Î State ´Ö¤òÁ«°Ü¤·¤Æ¡¢¥¢¥Ë¥á¤ÎÀÚ¤êÂؤ¨¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¤³¤Î¤È¤¡¢State ¤Ë¤ÏÁ«°Ü¤¹¤ë¤¿¤á¤Î¾ò·ï¤òÀßÄꤷ¤Æ¤ª¤¯¤³¤È¤¬½ÐÍè¤Þ¤¹¡£(̵¾ò·ï¤â²Äǽ¤Ç¤¹)
Î㤨¤Ð¡¢¤É¤¦¤¤¤Ã¤¿¾õÂ֤ˤʤ俤Ȥ¤Ë¡¢¤³¤Î¥¢¥Ë¥á¤ÎºÆÀ¸¤ò¤·¤Æ¤Û¤·¤¤¡¢¤È¤¤¤¦¾ðÊó¤ò Animator ¥Ó¥å¡¼Æâ¤Ç»öÁ°¤ËÅÐÏ¿¤·¤Æ¤ª¤¯¤³¤È¤Ë¤è¤ê¡¢
¤½¤Î¾ò·ï¼°¤ò¥¹¥¯¥ê¥×¥ÈÆâ¤ÇÀ©¸æ¤·¡¢¥¢¥Ë¥á¤ÎºÆÀ¸¤ÈƱ´ü¤µ¤»¤ë¤³¤È¤¬½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡º£²ó¤Ï¡¢¥¥ã¥é¤Î°ÜÆ°¤Î¥¡¼ÆþÎϤ˹ç¤ï¤»¤Æ¡¢¥¢¥Ë¥á¤ÎºÆÀ¸¤òÀ©¸æ¤¹¤ëÀ߷פˤ·¤Þ¤¹¤Î¤Ç¡¢
¥¡¼ÆþÎϤÈƱ¤¸¤è¤¦¤Ë¡¢X ¼´¤È Y ¼´¤Î¾ðÊó¤ò¾ò·ï¼°¤È¤·¤ÆÍÑ°Õ¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡¡¾ò·ï¼°¤È¤·¤Æ¡¢Animator ¤Ç¤Ï¡¢Parameter(¥Ñ¥é¥á¡¼¥¿) ¤òºîÀ®¤·¤Æ¡¢ÀßÄꤹ¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¡£
¡¡¥Ñ¥é¥á¡¼¥¿¤È¤Ï¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎºÆÀ¸¤Î¾õÂÖ¤òÀßÄꤹ¤ë¤â¤Î¤Ç¤¹¡££´¤Ä¤Î¼ïÎब¤¢¤ê¡¢º£²ó¤Ï Float ·¿¤ò¿·¤·¤¯ºîÀ®¤·¤Þ¤¹¡£
Animator¥Ó¥å¡¼¤Î¤¹¤°²¼¤Ë Parameters ¤È¤¤¤¦¹àÌܤ¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤ÎÃæ¤Ë¤¢¤ë¥×¥é¥¹¥Ü¥¿¥ó¤òÁªÂò¤·¡¢Float ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Parameters²èÁü
¡ã¼ê½çÆ°²è¡¡¥Ñ¥é¥á¡¼¥¿¤ÎÅÐÏ¿¡ä
https://gyazo.com/63c7dac793d657c067a1b27afdad7c81
¡¡Parameters¤ÎÃæ¤Ë¿·¤·¤¤¥Ñ¥é¥á¡¼¥¿¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò Look X ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
Float·¿¤Î¾ì¹ç¡¢Ì¾Á°¤Î±¦Â¦¤Ë 0.0 ¤È¤¤¤¦¿ô»ú¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£(¤³¤ÎÉôʬ¤¬·¿¤Ë¤è¤Ã¤ÆÊѲ½¤·¡¢¼ïÎà¤ÎÆÃÄ꤬ÍưפˤʤäƤ¤¤Þ¤¹)
¡¡Æ±¤¸¼ê½ç¤Ç¡¢¤â¤¦°ìÅ٥ץ饹¥Ü¥¿¥ó¤òÁªÂò¤·¡¢Æ±¤¸¤¯ Float ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Parameters¤ÎÃæ¤Ë¿·¤·¤¤¥Ñ¥é¥á¡¼¥¿¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò Look Y ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
Parameters¤Ë¥Ñ¥é¥á¡¼¥¿¤òÄɲä·¤¿¸å¤Î²èÁü(Speed ¤Ï̵»ë¤·¤Æ¤¯¤À¤µ¤¤)
¡¡Animator ¥Ó¥å¡¼Æâ¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Create State => From New Blend Tree ¤òÁªÂò¤·¤Þ¤¹¡£
¿·¤·¤¤ State ¤È¤·¤Æ Blend Tree ¤¬ºîÀ®¤µ¤ì¤Þ¤¹¡£ÁªÂò¤¹¤ë¤È¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤«¤é̾¾Î¤¬Êѹ¹¤Ç¤¤Þ¤¹¤Î¤Ç¡¢Moving ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
Animator ¥Ó¥å¡¼
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡Entry ¤Î State ¤òÁªÂò¤·¤Æ¡¢±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Set StateMachine Default State ¤òÁªÂò¤·¤Þ¤¹¡£
¥²¡¼¥à³«»Ï»þ¤Î½é´ü¤Î¥¢¥Ë¥á¤ÎºÆÀ¸ State ¤òÀßÄê¤Ç¤¤Þ¤¹¤Î¤Ç¡¢ºîÀ®¤·¤¿ Moving ¤ËÌð°õ¤ò·Ò¤²¤Æº¸¥¯¥ê¥Ã¥¯¤·¤Æ·èÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤³¤ì¤Ç¥²¡¼¥à³«»Ï¤ÈƱ»þ¤Ë Blend Tree Æâ¤Î°ÜÆ°¥¢¥Ë¥á¤¬ºÆÀ¸¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
Animator ¥Ó¥å¡¼
¡¡
¡¡Blend Tree ¤ò¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£Animator ¥Ó¥å¡¼¤ÎÆâÍƤ¬ Blend Tree ¤Î¾ÜºÙÀßÄê¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤¤ë¾õÂÖ¤ËÀÚ¤êÂؤï¤ê¤Þ¤¹¡£
Á°¤Î²èÌ̤ËÌá¤ë¾ì¹ç¤Ë¤Ï¡¢º¸¾å¤Ë¤¢¤ë Base Layer ¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£
Blend Tree ¤ÎÊÔ½¸²èÌÌ
¡¡
¡¡¸½ºß¡¢Blend Tree ¤ÎÃæ¤Ë Look X ¤Î¤ß¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¡£
¤³¤ì¤Ï Blend Type ¤È¤¤¤¦ÀßÄ꤫¤éÊѹ¹¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Î¾åÃʤˤ¢¤ë Blend Type ¤ò 2D Simple Directional ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¤¹¤°²¼¤Î Parameters ¤¬£±¤Ä¤«¤é£²¤Ä¤ËÊѹ¹¤µ¤ì¤Þ¤¹¡£
ξÊý¤È¤â Look X ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢±¦Â¦¤ò Look Y ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤Î¾õÂ֤ˤʤë¤È¡¢Animator ¥Ó¥å¡¼Æâ¤Î Blend Tree ¤Î¹àÌܤ¬ Look X ¤È Look Y ¤Î£²¤Ä¤ËÊѹ¹¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¡¡¤³¤Î£²¤Ä¤ÎÃͤξðÊó¤òÍøÍѤ·¤Æ¡¢¥¢¥Ë¥á¤ÎºÆÀ¸¤òÀÚ¤êÂؤ¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡¢¤È¤¤¤¦ÀßÄê¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡
Animator ¥Ó¥å¡¼
¡¡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 ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
Animation ¥Ó¥å¡¼²èÁü
¡¡Äɲ䵤줿 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 ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡¤Ç¤Ï¡¢»Ä¤ê¤Î£³¤Ä¤Î Animation Clip ¤Ë¤Ä¤¤¤Æ¤â¡¢Motion Æâ¤ËÄɲ䷤Ƥ¤¤¤Þ¤·¤ç¤¦¡£
Äɲ乤ë½çÈÖ¤ÏǤ°Õ¤Ç¤¹¡£²¼µ¤Î²èÁü¤Î¤è¤¦¤Ë¡¢Pos X ¤È Pos Y ¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
³ÆÊý¸þ¤ÈÃͤ¬Æ±´ü¤¹¤ë¤³¤È¤¬ÂçÀڤǤ¹¡£
Blend Tree ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
Animator ¥Ó¥å¡¼²èÁü
¡¡£²¤Ä°Ê¾å¤Î 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 Æâ¤Î¥¢¥Ë¥á¤ÎÀ©¸æ¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡¼¡¤Î¼ê½ç¤Ç¤Ï¡¢¤³¤Î¥í¥¸¥Ã¥¯¤ò»È¤Ã¤¿Á«°Ü¤ÎÀ©¸æ¤ò¡¢¥¹¥¯¥ê¥×¥È»È¤Ã¤ÆÀÚ¤êÂؤ¨¤ë¤è¤¦¤Ë¤·¤Æ¡¢¥¥ã¥é¤Î°ÜÆ°¤È°ÜÆ°¤Î¥¢¥Ë¥á¡¼¥·¥ç¥ó¤È¤òɳ¤Å¤±¤·¤Æ¤¤¤¤Þ¤¹¡£
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡¼¡¤Ï¡¡¼ê½ç£¹¡¡¡Ý¥×¥ì¥¤¥ä¡¼¥¥ã¥é¤Î°ÜÆ°¥¢¥Ë¥á¤ÎƱ´ü¡Ý¡¡¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯