ºÇ½ª¹¹¿·¡§
orika_ex_miyako 2023ǯ10·î31Æü(²Ð) 19:00:49ÍúÎò
ºÇ½é¤Ë¥¡¼¥Ü¡¼¥É¤òÍøÍѤ·¤Æ»ÑÀª¤ÎÊѹ¹½èÍý¤¬Æ°ºî¤¹¤ë¤«¤ò³Îǧ¤·¡¢¤½¤Î¸å¡¢²èÌ̤˥ܥ¿¥ó¤òÀßÃÖ¤·¤Æ¡¢¤½¤Î¥Ü¥¿¥ó¤«¤é»ÑÀª¤ÎÀ©¸æ¤ò¹Ô¤¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡ã´°À®²èÁü¡ä
![](https://image02.seesaawiki.jp/i/o/i-school-memo/SneKthjio3.jpg)
¡ã´°À®Æ°²è¡ä
https://gyazo.com/b36a21caecf622ea47227f0b8c25fc1f
¡¡°Ê²¼¤ÎÆâÍƤǽçÈ֤˼ÂÁõ¤ò¿Ê¤á¤Æ¤¤¤¤Þ¤¹¡£
¼ê½ç£±£µ¡¡¡Ý¥¥ã¥é¤Î»ÑÀªÊѹ¹¤ÎÀ©¸æ¡Ý
£²£´¡¥¥¹¥¯¥ê¥×¥È¤ò»È¤Ã¤Æ¡¢¥¥ã¥é¤Î»ÑÀªÊѹ¹¤ÎÀ©¸æ¤ò¼ÂÁõ¤¹¤ë
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦enum(Îóµó)·¿ ¡¡¡¦Rigidbody.drag ÊÑ¿ô ¡¡¡¦switch ʸ¤Ë¤è¤ëʬ´ô½èÍý
¡¡¥¡¼¥Ü¡¼¥É¤Î¥¹¥Ú¡¼¥¹¥¡¼¤òÁàºî¤·¤¿ºÝ¤Ë¡¢¥Ü¥¿¥ó¤ò²¡¤¹¤¿¤Ó¤Ë¥¥ã¥é¤Î»ÑÀª¤òÊѹ¹¤¹¤ë½èÍý¤ò¹Í¤¨¤Þ¤¹¡£
»ÑÀª¤ÎÊѹ¹¤Î½èÍý¤È¤Ï¡¢¼¡¤Î£³¤Ä¤ò¼ÂÁõ¤ò¹Ô¤¦¤³¤È¤ò»Ø¤·¤Þ¤¹¡£
¡¡£±¡¥enum(¥¤¥Ë¥å¡¼¥à)·¿¤Î attitude ÊÑ¿ô¤ÎÃͤÎÊѹ¹¡¡¡¡=>¡¡¥¥ã¥é¤Ë¡Ö»ÑÀª¡×¤È¤¤¤¦¾õÂÖ¤òÄɲä·¤ÆÊѹ¹¤ò¹Ô¤¤¤Þ¤¹ ¡¡£²¡¥Transform ¤Î Rotation.x ¤ÎÃͤÎÊѹ¹¡¡ ¡¡=>¡¡¥¥ã¥é¤Î²óž¾ðÊó¤òÊѹ¹¤·¤Æ¡¢¥²¡¼¥à²èÌ̾å¤Î¥¥ã¥é¤ò²óž¤µ¤»¤Þ¤¹ ¡¡£³¡¥Rigidbody ¤Î drag ¥×¥í¥Ñ¥Æ¥£¤ÎÊѹ¹ ¡¡¡¡=>¡¡drag(¶õµ¤Äñ¹³)¤ÎÃͤòÊѹ¹¤·¤Æ¡¢¥²¡¼¥à²èÌ̾å¤Î¥¥ã¥é¤ÎÍ®ÅÙ¤òÊѹ¹¤µ¤»¤Þ¤¹
¡¡enum ¤È¤ÏÎóµó·¿¤Î¤³¤È¤Ç¤¹¡£¤¢¤é¤«¤¸¤á¥²¡¼¥àÆâ¤ÇÍøÍѤ¹¤ëÆÃÄê¤ÎÃͤòÅÐÏ¿¤·¤Æ¤ª¤¤¤Æ¡¢¤½¤ÎÈϰϤǤΤßÃͤò»ØÄê¤Ç¤¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¤³¤³¤Ç¤Ï¡¢¡Ö¥¥ã¥é¤Î»ÑÀª¡×¤Ë¤Ä¤¤¤Æ¤Î enum ¤Ç¤¢¤ë AttitudeType ·¿¤òºîÀ®¤·¤Æ±¿ÍѤ·¤Þ¤¹¡£
¥¥ã¥é¤Î»ÑÀª¤Ë¤Ï¡Öľ³ê¹ß¡×¤È¡ÖÉú¤»¡×¤Î£²¼ïÎà¤òÍÑ°Õ¤·¤Æ¡¢¤½¤ì¤òÅÐÏ¿¤·¤Æ¤ª¤¤Þ¤¹¡£
¤½¤¦¤¹¤ë¤³¤È¤Ç¥¥ã¥é¤Î»ÑÀª¤Ï¤³¤Î£²¼ïÎà¤ÎÃ椫¤é¤Î¤ßÁªÂò¤¹¤ë¤è¤¦¤ËÀ©¸æ¤¬¹Ô¤¨¤Þ¤¹¡£
¡¡¼ÂºÝ¤Ë¥¥ã¥é¤Î»ÑÀª¤òÊѤ¨¤ë¤Î¤Ï¡¢Transform ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Rotation ¤ÎÃͤòÊѹ¹¤¹¤ë¤³¤È¤Ë¤è¤Ã¤ÆÀ©¸æ¤·¤Þ¤¹¡£
Rotation ¤Î X ¼´¤ò¥Ü¥¿¥ó¤ò²¡¤¹¤¿¤Ó¤ËÁàºî¤·¤Æ¡¢¥¥ã¥é¤Î³ÑÅÙ¤ò²óž¤µ¤»¤Æ¸½ºß¤Î»ÑÀª¤È¤·¤Þ¤¹¡£
¤³¤Î¤È¤¡¢¤¹¤°¤Ë²óž³ÑÅÙ¤òÊѤ¨¤Æ¤·¤Þ¤¦¤ÈµÞ¤Ë»ÑÀª¤òÊѤ¨¤Æ¤·¤Þ¤¦¤Î¤Ç¡¢DOTween ¤òÍøÍѤ·¤Æ
¥¥ã¥é¤¬Á°¤Î»ÑÀª¤«¤é¼¡¤Î»ÑÀª¤Ø¤È¥¢¥Ë¥á¡¼¥·¥ç¥ó¤·¤Ê¤¬¤é»ÑÀª¤òÊѤ¨¤ë¤è¤¦¤Ë±é½Ð¤ò¹Ô¤¤¤Þ¤¹¡£
¡ã»ÑÀª¤ÎÊѹ¹¡ä
https://gyazo.com/b36a21caecf622ea47227f0b8c25fc1f
¡¡¥¥ã¥é¤Î»ÑÀª¤¬¡ÖÉú¤»¡×¾õÂ֤ˤʤ俤Ȥ¡¢¥¥ã¥é¤ÏƬ¤ÈÂΤò¿åÊ¿¤Ë¿¤Ð¤·¤¿»ÑÀª¤Ë¤Ê¤ê¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢¶õµ¤¤ËÀÜ¿¨¤¹¤ëÉôʬ¤¬Áý¤¨¤Þ¤¹¤Î¤Ç¶õµ¤Äñ¹³¤¬Áý¤¨¤ë¤È¹Í¤¨¤é¤ì¤Þ¤¹¡£
¤½¤³¤Ç¤³¤ì¤òÉôʬ¤ò¥²¡¼¥àÆâ¤Ë¤âÈ¿±Ç¤·¤Æ¡¢¡ÖÉú¤»¡×¤Î»ÑÀª¤Ë¤Ê¤Ã¤¿¤é¡¢¶õµ¤Äñ¹³¤ÎÃͤòÊѹ¹¤·¤Æ
Í®ÅÙ¤òÄ㸺¤µ¤»¤ëÀ©¸æ¤ò²Ã¤¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¤³¤ì¤Ë¤è¤ê¡¢¤æ¤Ã¤¯¤ê¤ÈÍî²¼¤·¤Þ¤¹¤Î¤Ç
¥×¥ì¥¤¥ä¡¼¤ÏÄ̲á¤Ç¤¤½¤¦¤Ë¤Ê¤¤±ó¤¯¤Î²ÖÎؤò¤¯¤°¤ë¥Á¥ã¥ó¥¹¤òÆÀ¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡¤¿¤À¤·¤º¤Ã¤È¡ÖÉú¤»¡×¤Î¾õÂ֤Ǥ¤¤ë¤Î¤ÏÂçÊѤǤ¹¤Î¤Ç¡¢°ìÄê»þ´Ö¸å¤Ë¡¢¶¯À©Åª¤Ë¸µ¤Î»ÑÀª¤ËÌᤷ¤Þ¤¹¡£
¤³¤ÎÉôʬ¤ÏÀè¤Î¼ê½ç¤Ç¼ÂÁõ¤·¤Þ¤¹¤Î¤Ç¡¢¤Þ¤º¤³¤Î¼ê½ç¤Ç¤Ï¥¡¼¥Ü¡¼¥É¤ò²¡¤¹¤¿¤Ó¤Ë»ÑÀª¤òÊѹ¹¤¹¤ë¤è¤¦¤ËÀ©¸æ¤ò¤·¤Þ¤¹¡£
¡¡Àë¸À¥Õ¥£¡¼¥ë¥É¤Ë¤Ï¡¢enum ¥¡¼¥ï¡¼¥É¤ò»ý¤Ä AttitudeType ·¿¤òÀë¸À¤·¤Æ¡¢¥¥ã¥é¤Î»ÑÀª¤Î¼ïÎà¤òÅÐÏ¿¤·¤Þ¤¹¡£
º£²ó¤Ï¡Öľ³ê¹ß(Straight)¡×¤È¡ÖÉú¤»¡ÊProne¡Ë¡×¤À¤±¤Ç¤¹¤¬¡¢¼«Í³¤ËÁý¤ä¤¹¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡¹ç¤ï¤»¤Æ¡¢¤³¤Î AttitudeType ·¿¤ÎÊÑ¿ô¤òÀë¸À¤·¤Þ¤¹¡£¤³¤Á¤é¤ÎÊÑ¿ô¤Ç¡¢¡Ö¸½ºß¤Î¥¥ã¥é¤Î»ÑÀª¡×¤òÀ©¸æ¤·¤Þ¤¹¡£
¡¡¤Þ¤¿Éú¤»¤Î»ÑÀªÍѤ˲óž³ÑÅÙ¤òÀßÄꤷ¤¿ proneRotation ÊÑ¿ô¤òÍÑ°Õ¤·¤Æ¤ª¤¤¤Æ¡¢¤½¤ì¤òÍøÍѤ·¤Þ¤¹¡£
²¿²ó¤«ÍøÍѤ¹¤ëÃͤ¬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¤³¤¦¤·¤Æ½é´ü²½¤·¤ÆÍÑ°Õ¤·¤Æ¤ª¤¯¤³¤È¤Ç½èÍý¤òµ½Ò¤¹¤ëºÝ¤Ë¾Êά½ÐÍè¤ë¾å¤Ë¡¢ÂǤÁ´Ö°ã¤¨¤òËɻߤǤ¤Þ¤¹¡£
¡¡Start ¥á¥½¥Ã¥ÉÆâ¤Ë¤Ï½èÍý¤òÄɲ䷤ơ¢¸½ºß¤Î¥¥ã¥é¤Î½é´ü¤Î»ÑÀª¤ò¡Öľ³ê¹ß¡ÊStraight¡Ë¡×¤ËÀßÄꤷ¤Þ¤¹¡£
¡¡¿·¤·¤¯¥á¥½¥Ã¥É¤ò£²¤ÄÄɲ䷤ơ¢¥¥ã¥é¤Î»ÑÀª¤ÎÀ©¸æ¤ò¹Ô¤¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡¡¡¡
¡¡Update ¥á¥½¥Ã¥É¤Ç¤Ï¥¡¼¥Ü¡¼¥É¤«¤é¤Î¥¡¼ÆþÎϤò¼õ¤±ÉÕ¤±¤ë½èÍý¤òµ½Ò¤·¤Æ¤¤¤Þ¤¹¡£
¡¡ChangeAttitude ¥á¥½¥Ã¥É¤Ç¤Ï¥¥ã¥é¤Î»ÑÀª¤òÊѹ¹¤¹¤ë½èÍý¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
¥¹¥Ú¡¼¥¹¥¡¼¤ò²¡¤¹¤¿¤Ó¤Ë¤³¤Á¤é¤Î¥á¥½¥Ã¥É¤¬¸Æ¤Ó½Ð¤µ¤ì¤Æ¡¢¸½ºß¤Î¥¥ã¥é¤Î»ÑÀª¤òȽÄêÃͤȤ·¡¢»ÑÀª¤òÊѹ¹¤·¤Þ¤¹¡£
¾ò·ï¤Îʬ´ô¤Ë¤Ï attitudeType ÊÑ¿ô¤È swtich ʸ¤òÍøÍѤ·¤Þ¤¹¡£
switch ʸ¤Ï¤¤¤º¤ì¤«¤Î case ʬ´ô¤Î½èÍý¤¬¼Â¹Ô¤µ¤ì¤ë¤È break ¤Çswitch ʸ¤òÈ´¤±¤ë¤¿¤á¡¢Â¾¤Î case ʬ´ô¤Ë¤ÏÆþ¤ê¤Þ¤»¤ó¡£
PlayerController.cs
¡¡
¡¡¥¹¥¯¥ê¥×¥È¤Î½¤Àµ¤¬½ªÎ»¤·¤¿¤é¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¤Æ¡¢¿·¤·¤¯Àë¸À¤·¤¿ attitudeType ÊÑ¿ô¤¬Äɲ䵤ì¤Æ¤¤¤ë¤«³Îǧ¤·¤Þ¤·¤ç¤¦¡£
enum ·¿¤ÇÀë¸À¤·¤¿ÊÑ¿ô¤Ï¡¢¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤«¤éÁªÂò¤¬²Äǽ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
Start ¥á¥½¥Ã¥É¤Ç½é´üÃͤò Straight ¤Ë·èÄꤷ¤Þ¤¹¤Î¤Ç¡¢¤³¤³¤Ç¤ÎÃͤϤɤì¤ËÀßÄꤷ¤Æ¤ª¤¤¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£
Penguin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/bNhY_ccVW5.png)
¡¡C# ¤Ë¤ÏÆÃÄê¤ÎÃͤ·¤«¼è¤é¤Ê¤¤¥Ç¡¼¥¿¤Ë´Ø¤·¤Æ¡¢¤¢¤é¤«¤¸¤áÅÐÏ¿¤·¤Æ¤ª¤¤¤Æ¡¢¤½¤ÎÈÏ°ÏÆâ¤Ç¤Î¤ß¥Ç¡¼¥¿¤ò°·¤¦¤è¤¦¤Ë»ØÄ꤬½ÐÍè¤Þ¤¹¡£
¤³¤ì¤ò enum (ÆɤßÊý¤Ï¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹¤¬¡¢¥¤¥Ë¥å¡¼¥à¤¬°ìÈÌŪ¤Ç¤¹) ¤È¤¤¤¦¥¡¼¥ï¡¼¥É¤òÍøÍѤ¹¤ë¤³¤È¤ÇºîÀ®¤Ç¤¤Þ¤¹¡£
enum ¤ò¥¡¼¥ï¡¼¥É¤È¤·¤ÆÀë¸À¤·¡¢¤½¤Î¸å¤Ë·¿Ì¾¤ò½ñ¤¤Þ¤¹¡£¤½¤Î¸å¡¢{¡¡}¥Ö¥í¥Ã¥¯¤ÎÃæ¤ËÎóµó»Ò¤È¤¤¤¦·Á¤ÇÅÐÏ¿¤·¤¿¤¤¥Ç¡¼¥¿¤òÀë¸À¤·¤Þ¤¹¡£
// ¥¥ã¥é¤Î¾õÂ֤μïÎà public enum AttitudeType { Straight, // ľ³ê¹ß(Ä̾ï»þ)¡¡¡¡Îóµó»Ò Prone // Éú¤»¡¡¡¡¡¡¡¡¡¡¡¡¡¡Îóµó»Ò }
¡¡¤Þ¤¿ enum ¤ÎÎóµó»Ò¤Ë¤ÏÆüËܸì¤Ç¤âÀë¸À¤Ç¤¤Þ¤¹¡£
// ¥¥ã¥é¤Î¾õÂ֤μïÎà public enum AttitudeType { ľ³ê¹ß, Éú¤» }
¡¡enum ¤Ë¤ÏÂåÆþ½èÍý¤ò¹Ô¤¦¤³¤È¤Ç¡¢Îóµó»Ò¤ËÅÐÏ¿¤·¤Æ¤¤¤ëÃͤΤߤò»ØÄꤷ¤ÆÂåÆþ¤Ç¤¤Þ¤¹¡£
¡¡// ¸½ºß¤Î»ÑÀª¤ò¡Öľ³ê¹ß¡×¤ËÊѹ¹(¤¤¤Þ¤Þ¤Ç¤Î»ÑÀª) attitudeType = AttitudeType.Straight;
¡¡º£²ó¤Ï¤³¤Á¤é¤Î attitudeType ÊÑ¿ô¤ò switch ʸ¤Îʬ´ô¾ò·ï¤ËÍøÍѤ·¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤Ï attitudeType ÊÑ¿ô¤ÎÃͤ¬¸½ºß¤Î¥¥ã¥é¤Î»ÑÀª¤Ç¤¢¤ë¤¿¤á¡¢¤½¤ì¤ò¾ò·ï¤È¤·¤Æʬ´ô¤òºîÀ®¤·¤Æ¤¤¤Þ¤¹¡£
// ¸½ºß¤Î»ÑÀª¤Ë±þ¤¸¤Æ»ÑÀª¤òÊѹ¹¤¹¤ë switch (attitudeType) { ¡¡ // ¸½ºß¤Î»ÑÀª¤¬¡Öľ³ê¹ß¡×¤À¤Ã¤¿¤é case AttitudeType.Straight: <= // ¾ò·ï£± // ½èÍý // ½èÍý¤òÈ´¤±¤ë break; // ¸½ºß¤Î»ÑÀª¤¬¡ÖÉú¤»¡×¤À¤Ã¤¿¤é case AttitudeType.Prone: <= // ¾ò·ï£² ¡¡¡¡¡¡ // ½èÍý // ½èÍý¤òÈ´¤±¤ë break;
»²¹Í¥µ¥¤¥È
MicroSoft
Îóµó·¿ (C# ¥ê¥Õ¥¡¥ì¥ó¥¹)
https://docs.microsoft.com/ja-jp/dotnet/csharp/lan...
SamuraiBlog ÍÍ
¡ÚC#ÆþÌç¡Ûenum(Îóµó·¿)¤Î»È¤¤ÊýÁí¤Þ¤È¤á(ʸ»úÎó/int/foreach)
https://www.sejuku.net/blog/50547
¡¡Rigidbody ¥¯¥é¥¹¤Î»ý¤ÄÊÑ¿ô¤Ë drag ÊÑ¿ô¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ÎÃͤϥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤«¤«¤ë¶õµ¤Äñ¹³¤ÎÃͤòɽ¤·¤Þ¤¹¡£
Rigidbody ¥³¥ó¥Ý¡¼¥Í¥ó¥È
![](https://image01.seesaawiki.jp/i/o/i-school-memo/9fxLbhNr40.png)
¡¡¸½ºßÃÍ¤Ï 0 ¤Ç¤¹¤Î¤Ç¶õµ¤Äñ¹³¤Ï¤Ê¤¤¾õÂ֤Ǥ¹¡£º£²óÄɲä·¤¿½èÍý¤Ç¤Ï¡¢¤³¤ÎÃͤò»ÑÀª¤ÎÊѹ¹¤Ë¹ç¤ï¤»¤ÆÊѹ¹¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤Î·ë²Ì¤È¤·¤Æ¡¢Í®ÅÙ¤¬¤æ¤Ã¤¯¤ê¤Ë¤Ê¤ë¤è¤¦¤ËÀ©¸æ¤¬¹Ô¤ï¤ì¤Æ¤¤¤Þ¤¹¡£
¡ÖÉú¤»¡×¤Î»ÑÀª¤Ë¤Ê¤Ã¤¿¾ì¹ç¡¢¶õµ¤Äñ¹³¤ÎÃͤòÁý²Ã¤·¤ÆÍ®ÅÙ¤ò¤æ¤Ã¤¯¤ê¤Ë¤¹¤ë
// ¶õµ¤Äñ¹³¤ÎÃͤò¾å¤²¤ÆÍ®ÅÙ¤òÃÙ¤¯¤¹¤ë rb.drag = 25.0f;
¡Öľ³ê¹ß¡×¤Î»ÑÀª¤Ë¤Ê¤Ã¤¿¾ì¹ç¡¢¶õµ¤Äñ¹³¤ÎÃͤò 0 ¤Ë¤·¤ÆÍ®ÅÙ¤òÌ᤹
// ¶õµ¤Äñ¹³¤ÎÃͤò¸µ¤ËÌᤷ¤ÆÍ®ÅÙ¤òÌ᤹ rb.drag = 0f;
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥¹¥¯¥ê¥×¥È¥ê¥Õ¥¡¥ì¥ó¥¹
Rigidbody.drag
https://docs.unity3d.com/ja/2019.4/ScriptReference...
YTTMWORK ÍÍ
Rigidbody¤Ç½ÐÍè¤ë¤³¤È¤òÃÎ¤í¤¦
https://yttm-work.jp/unity_beginner/unity_beginner...
¡¡¥²¡¼¥à¤ò¼Â¹Ô¤·¤Æ¡¢¥Ü¥¿¥óÁàºî¤Ç¥¥ã¥é¤Î»ÑÀª¤¬Êѹ¹¤Ë¤Ê¤ë¤«¤ò³Îǧ¤·¤Þ¤¹¡£
¡¡º£²ó¤Ï¥¡¼¥Ü¡¼¥É¤Î¥¹¥Ú¡¼¥¹¤ò²¡¤¹¤¿¤Ó¤Ë¡¢»ÑÀª¤òÀÚ¤êÂؤ¨¤Æ¤¤¤Þ¤¹¡£
¤½¤ÎºÝ¡¢¡Ö¡Enum·¿¤Î attitude ÊÑ¿ô¤ÎÃͤÎÊѹ¹¡×¡¢¡Ö¢Transform ¤Î Rotation.x ¤ÎÃͤÎÊѹ¹¡×¡¢¡Ö£Rigidbody ¤Î drag ¥×¥í¥Ñ¥Æ¥£¤ÎÊѹ¹¡×¤Î£³¤Ä¤Î¹àÌܤ¬
¤½¤ì¤¾¤ìÊѹ¹¤µ¤ì¤Æ¤¤¤ë¤«¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
¡ã¼Â¹ÔÆ°²è¡¡¥Ü¥¿¥ó¤ò²¡¤¹¤¿¤Ó¤Ë¡¢¸½ºß¤Î»ÑÀª¤ÎÃͤ¬Êѹ¹¤Ë¤Ê¤ë¡ä
https://gyazo.com/31f9475611de264c46a68c98f151ebf5
¡ã¼Â¹ÔÆ°²è¡¡¥Ü¥¿¥ó¤ò²¡¤¹¤¿¤Ó¤Ë¡¢Rigidbody ¤Î drag ¥×¥í¥Ñ¥Æ¥£¤ÎÃͤ¬Êѹ¹¤Ë¤Ê¤Ã¤ÆÍ®ÅÙ¤¬Êѹ¹¤µ¤ì¤ë¡ä
https://gyazo.com/b36a21caecf622ea47227f0b8c25fc1f
¡¡¢¨¡¡»ÑÀª¤ÎÊѹ¹¤¬¤¦¤Þ¤¯Æ°ºî¤·¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥¹¥¯¥ê¥×¥È¤Î¸«Ä¾¤·¤ò¹Ô¤¤¤Þ¤·¤ç¤¦¡£
¡¡¡¡¡¡¥¹¥¯¥ê¥×¥È¤ËÌäÂ꤬¤Ê¤¤¤è¤¦¤Ç¤¢¤ì¤Ð¡¢¥Ú¥ó¥®¥ó¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Apply Root Motion ¤Ë¥Á¥§¥Ã¥¯¤¬Æþ¤Ã¤Æ¤¤¤Ê¤¤¤«³Îǧ¤·¡¢
¡¡¡¡¥¹¥¤¥Ã¥Á¤¬Æþ¤Ã¤Æ¤¤¤¿¤é¥ª¥Õ¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡=>¡¡¼¡¤Ï¡¡¼ê½ç£±£¶¡¡¡Ý¥Ü¥¿¥ó¤Ë¤è¤ë¥¥ã¥é¤Î»ÑÀªÊѹ¹¤ÎÀ©¸æ¡Ý¡¡¤Ç¤¹¡£
¡¡
¡¡¼¡¤Î¼ê½ç¤Ç¤Ï¡¢¤³¤Î»ÑÀªÊѹ¹¤ÎÁàºî¤ò¥¹¥Þ¥Û¥¢¥×¥ê¤«¤é¤â¼Â¹Ô¤Ç¤¤ë¤è¤¦¤Ë¡¢
²èÌ̤˻ÑÀªÊѹ¹ÍѤΥܥ¿¥ó¤òÀßÃÖ¤·¤Æ¡¢¥Ü¥¿¥ó¤ò²¡¤¹¤¿¤Ó¤ËƱ¤¸Áàºî¤¬¤Ç¤¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯