{"id":6240,"date":"2022-03-03T17:30:51","date_gmt":"2022-03-03T08:30:51","guid":{"rendered":"https:\/\/akibabara.com\/blog\/?p=6240"},"modified":"2022-08-31T16:18:32","modified_gmt":"2022-08-31T07:18:32","slug":"%e3%80%90vrchat%e3%80%91npc%e3%81%ae%e3%83%9c%e3%83%bc%e3%83%ab%e9%81%8a%e3%81%b3%e6%a9%9f%e8%83%bd%e3%81%8c%e6%83%b3%e5%83%8f%e4%bb%a5%e4%b8%8a%e3%81%ab%e5%a4%a7%e5%a4%89%e3%81%a0%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/akibabara.com\/blog\/6240.html","title":{"rendered":"\u3010VRCHat\u3011NPC\u306e\u30dc\u30fc\u30eb\u904a\u3073\u6a5f\u80fd\u304c\u60f3\u50cf\u4ee5\u4e0a\u306b\u5927\u5909\u3060\u3063\u305f\u4ef6"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-1024x576.webp\" alt=\"\" class=\"wp-image-6248\" width=\"1024\" height=\"576\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-1024x576.webp 1024w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-300x169.webp 300w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-768x432.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-1536x864.webp 1536w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2.webp 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">NPC\u304c\u52d5\u304d\u307e\u308f\u308b\u30ef\u30fc\u30eb\u30c9\u300eNPC Cat toy \u2013 \u306d\u3053\u3058\u3083\u3089\u3057\u904a\u3073\u300f\u306b\u3001NPC\u3068\u30dc\u30fc\u30eb\u904a\u3073\u304c\u3067\u304d\u308b\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u4eca\u307e\u3067\u306e\u3082\u306e\u306fNPC\u304c\u306d\u3053\u3058\u3083\u3089\u3057\u3092\u8ffd\u3044\u304b\u3051\u305f\u308a\u3001\u3058\u3083\u308c\u305f\u308a\u3059\u308b\u3082\u306e\u3067\u3001\u3053\u308c\u3092\u3061\u3087\u3063\u3068\u6539\u5909\u3059\u308c\u3070\u7c21\u5358\u306b\u4f5c\u308c\u305d\u3046\u3060\u306a\uff5e\u3001\u3068\u601d\u3063\u3066\u305f\u3089\u3059\u3054\u3044\u5927\u5909\u3067\u3057\u305f\u3002<a rel=\"noreferrer noopener\" href=\"https:\/\/akibabara.com\/blog\/6130.html\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u306b\u7d9a\u304d\u3001\u8ffd\u52a0\u3057\u305f\u5206\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u30ef\u30fc\u30eb\u30c9\u540d<\/strong> NPC Cat toy &#8211; \u306d\u3053\u3058\u3083\u3089\u3057\u904a\u3073<br><strong>URL<\/strong> <a rel=\"noreferrer noopener\" href=\"https:\/\/vrchat.com\/home\/world\/wrld_972f24e5-99c7-4517-9dc0-a36ba5adfcd7\" target=\"_blank\">https:\/\/vrchat.com\/home\/world\/wrld_972f24e5-99c7-4517-9dc0-a36ba5adfcd7<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u30dc\u30fc\u30eb\u904a\u3073\u306e\u6982\u8981\">\u30dc\u30fc\u30eb\u904a\u3073\u306e\u6982\u8981<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d3\u30fc\u30c1\u30dc\u30fc\u30eb\u3092\u6295\u3052\u308b\u3068NPC\u306e\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u30dc\u30fc\u30eb\u3092\u8ffd\u3044\u304b\u3051\u3066\u3001\u62fe\u3063\u3066\u3001\u6301\u3063\u3066\u304d\u3066\u304f\u308c\u308b\u3082\u306e\u3067\u3059\u3002\u3053\u3046\u66f8\u304f\u3068\u3068\u3066\u3082\u7c21\u5358\u305d\u3046\u3067\u3059\u3088\u306d\u3002\u3067\u3082\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u5b9f\u88c5\u3057\u3066\u307f\u308b\u3068\u3001\u72b6\u614b\u306e\u5909\u5316\u304c\u591a\u304f\u3066\u7d50\u69cb\u8907\u96d1\u306a\u3082\u306e\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u958b\u767a\u5f53\u521d\u306f\u4ee5\u4e0b\u306e\uff12\uff5e\uff16\u306e5\u6bb5\u968e\u306e\u307f\u3067\u4f5c\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u904a\u3073\u7d42\u308f\u3063\u305f\u5f8c\u306b\u58c1\u306e\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u6d88\u3048\u3066\u3057\u307e\u3046\u306e\u304c\u5473\u6c17\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u300c\u5916\u304b\u3089\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u904a\u3073\u306b\u304f\u308b\u300d\u3068\u3044\u3046\u30b7\u30c1\u30e5\u30a8\u30fc\u30b7\u30e7\u30f3\u306b\u3057\u307e\u3057\u305f\u3002\u904a\u3073\u7d42\u308f\u308b\u3068\u304a\u3046\u3061\u306b\u5e30\u308b\u306e\u3067\u3001\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u3068\u304d\u306e\u865a\u3057\u3055\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u7b11<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\uff19\u7a2e\u985e\u306e\u72b6\u614b\">\uff11\uff10\u7a2e\u985e\u306e\u72b6\u614b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\uff10\uff0e\u30dc\u30fc\u30eb\u904a\u3073\u306e\u6709\u52b9\u5316\u5f85\u3061<br>\uff11\uff0e\u30e9\u30b9\u30af\u3061\u3083\u3093\u3092\u30db\u30fc\u30e0\u30dd\u30b8\u30b7\u30e7\u30f3\u3078\u79fb\u52d5<br>\uff12\uff0e\u5f85\u6a5f\uff08\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u30dc\u30fc\u30eb\u3092\u6301\u3063\u305f\u3053\u3068\u3092\u691c\u77e5\uff09<br>\uff13\uff0e\u6295\u3052\u305f\u30dc\u30fc\u30eb\u3092\u8ffd\u3044\u304b\u3051\u308b\uff08\u30dc\u30fc\u30eb\u3092\u96e2\u3057\u305f\u3053\u3068\u3092\u691c\u77e5\uff09<br>\uff14\uff0e\u30dc\u30fc\u30eb\u3092\u62fe\u3046\uff08\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u518d\u751f\uff09<br>\uff15\uff0e\u6295\u3052\u305f\u4eba\u306e\u3068\u3053\u308d\u307e\u3067\u3001\u30dc\u30fc\u30eb\u3092\u6301\u3063\u3066\u8fd1\u3065\u3044\u3066\u304f\u308b<br>\uff16\uff0e\u30dc\u30fc\u30eb\u3092\u6e21\u3059<br>\uff17\uff0e\u306a\u3067\u3089\u308c\u305f\u3089\u30cb\u30b3\u30cb\u30b3\u3059\u308b<br>\uff18\uff0e\u7d42\u4e86<br>\uff19\uff0e\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u304a\u3046\u3061\u306b\u5e30\u308b<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-1.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-1-1024x576.webp\" alt=\"\" class=\"wp-image-6245\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-1-1024x576.webp 1024w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-1-300x169.webp 300w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-1-768x432.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-1-1536x864.webp 1536w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-1.webp 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-1024x576.webp\" alt=\"\" class=\"wp-image-6248\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-1024x576.webp 1024w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-300x169.webp 300w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-768x432.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2-1536x864.webp 1536w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-2.webp 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-1024x576.webp\" alt=\"\" class=\"wp-image-6247\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-1024x576.webp 1024w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-300x169.webp 300w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-768x432.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-1536x864.webp 1536w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3.webp 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-4.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-4-1024x576.webp\" alt=\"\" class=\"wp-image-6246\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-4-1024x576.webp 1024w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-4-300x169.webp 300w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-4-768x432.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-4-1536x864.webp 1536w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-4.webp 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8aac\u660e\">\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8aac\u660e<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u56de\u4f5c\u3063\u305f\u3001\u306d\u3053\u3058\u3083\u3089\u3057\u3067\u904a\u3076\u30e9\u30b9\u30af\u3061\u3083\u3093\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30d9\u30fc\u30b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u30922\u21923\u306b\u3059\u308b\u3068\u3044\u3046\u5b89\u76f4\u306a\u3084\u308a\u65b9\u3067\u3059\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"udonsharp\u30b9\u30af\u30ea\u30d7\u30c8\">Udonsharp\u30b9\u30af\u30ea\u30d7\u30c8<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3000<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/kaz-mac\/misc\/blob\/master\/VRChat\/NPC_Cattoy\/AICharacterControl3.cs\" target=\"_blank\">AICharacterControl3.cs<\/a><br>\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5236\u5fa1\u3000<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/kaz-mac\/misc\/blob\/master\/VRChat\/NPC_Cattoy\/ThirdPersonCharacter3.cs\" target=\"_blank\">ThirdPersonCharacter3.cs<\/a><br>\u30dc\u30fc\u30eb\u306e\u5236\u5fa1\u3000<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/kaz-mac\/misc\/blob\/master\/VRChat\/NPC_Cattoy\/BeachBall.cs\" target=\"_blank\">BeachBall.cs<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u95a2\u4fc2<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ruskunity4.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"489\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ruskunity4-1024x489.webp\" alt=\"\" class=\"wp-image-6255\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ruskunity4-1024x489.webp 1024w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ruskunity4-300x143.webp 300w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ruskunity4-768x367.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ruskunity4-1536x734.webp 1536w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ruskunity4.webp 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-\u30dc\u30fc\u30eb\u904a\u3073\u306e\u6709\u52b9\u5316\u5f85\u3061-state-0\">(0) \u30dc\u30fc\u30eb\u904a\u3073\u306e\u6709\u52b9\u5316\u5f85\u3061<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u306f\u58c1\u306e\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3001\u5916\u304b\u3089\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u3084\u3063\u3066\u304f\u308b\u3001\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306e\u90e8\u5206\u3067\u3059\u3002\u30dc\u30bf\u30f3\u306f\u4eee\u60f3\u72d0\u306e\u30c7\u30b6\u30a4\u30f3\u5de5\u623f\u3055\u3093\u306e<a rel=\"noreferrer noopener\" href=\"https:\/\/booth.pm\/ja\/items\/1969082\" target=\"_blank\">Lura\u2019s Switch<\/a>\u3067\u3001&#8221;Switch_Object_On&#8221; \u304c\u30a2\u30af\u30c6\u30a3\u30d6\u72b6\u614b\u306b\u306a\u3063\u305f\u3053\u3068\u76e3\u8996\u3057\u3066\u3044\u307e\u3059\u3002\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u306a\u3063\u305f\u3089\u30d3\u30fc\u30c1\u30dc\u30fc\u30eb\u3092\u8868\u793a\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"AICharacterControl3.cs\" data-lang=\"C#\"><code>                if (_switch.activeSelf) \/\/ \u30b9\u30a4\u30c3\u30c1\u62bc\u3057\u305f\u3089<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u30dc\u30fc\u30eb\u5074\u3067\u3044\u308d\u3044\u308d\u3068\u5236\u5fa1\u3055\u305b\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5074\u304b\u3089\u30dc\u30fc\u30eb\u5074\u306e\u95a2\u6570\u3092\u5b9f\u884c\u3055\u305b\u308b\u65b9\u5f0f\u306b\u3057\u307e\u3057\u305f\u3002Udon\u3067\u306f\u7570\u306a\u308b\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u306e\u306b ball.BallShow() \u306e\u3088\u3046\u306a\u8a18\u8ff0\u304c\u3067\u304d\u306a\u3044\u3089\u3057\u304f\u3001SendCustomEvent() \u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"AICharacterControl3.cs\" data-lang=\"C#\"><code>        GameObject ball;    \/\/ \u8ffd\u3044\u304b\u3051\u308b\u5bfe\u8c61\u306e\u30dc\u30fc\u30eb\n        UdonBehaviour udon; \/\/ \u305d\u306e\u30dc\u30fc\u30eb\u306b\u4ed8\u3044\u3066\u308bUdon\n\n                    \/\/ \u30dc\u30fc\u30eb\u3092\u51fa\u73fe\u3059\u308b\n                    for (var i = 0; i &lt; _tgroot.transform.childCount; i++)\n                    {\n                        ball = _tgroot.transform.GetChild(i).gameObject;\n                        if (ball != null)\n                        {\n                            udon = (UdonBehaviour)ball.GetComponent(typeof(UdonBehaviour));\n                            if (udon != null) udon.SendCustomEvent(&quot;BallShow&quot;);    \/\/ \u30dc\u30fc\u30eb\u8868\u793a\n                            Vector3 pos = _ball_spawn_point.position;\n                            pos.x += 0.4f * i;\n                            ball.transform.position = pos;\n                        }\n                    }<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">_tgroot \u306f\u6295\u3052\u3089\u308c\u308b\u30dc\u30fc\u30eb\u304c\u5165\u3063\u3066\u3044\u308b\u89aa\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3001\u305d\u306e\u914d\u4e0b\u306e\u30dc\u30fc\u30eb\u3092\uff11\u3064\u3065\u3064\u51e6\u7406\u3057\u3066\u3044\u304d\u307e\u3059\u3002ball \u306b\u30dc\u30fc\u30eb\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u305f\u3089\u3001\u305d\u306eball\u304b\u3089UdonBehaviour\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u3042\u3068\u306f udon.SendCustomEvent(&#8220;BallShow&#8221;); \u3067\u3001\u30dc\u30fc\u30eb\u5074\u306e BallShow() \u3092\u5b9f\u884c\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"BeachBall.cs\" data-lang=\"C#\"><code>    \/\/ \u30dc\u30fc\u30eb\u306e\u8868\u793a\n    public void BallShow()\n    {\n        \/\/gameObject.SetActive(true);\n        this.gameObject.GetComponent&lt;Renderer&gt;().enabled = true;\n    }<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">(1) \u30e9\u30b9\u30af\u3061\u3083\u3093\u3092\u30db\u30fc\u30e0\u30dd\u30b8\u30b7\u30e7\u30f3\u3078\u79fb\u52d5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u958b\u59cb\u524d\u306f\u90e8\u5c4b\u306e\u5916\u3067\u5f85\u6a5f\u3057\u3066\u3044\u307e\u3059\u3002\u30b9\u30a4\u30c3\u30c1\u306e\u8fd1\u304f\u307e\u3067\u8a98\u5c0e\u3059\u308b\u305f\u3081\u306b\u3001agent.SetDestination() \u3067\u76ee\u6a19\u3092\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u76ee\u6a19\u307e\u3067\u306e\u6b8b\u308a\u306e\u8ddd\u96e2 agent.remainingDistance \u3092\u898b\u308b\u3053\u3068\u3067\u3001\u76ee\u6a19\u306b\u5230\u9054\u3057\u305f\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u306a\u305c\u304b\u8d70\u308b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u304c\u7121\u3044\u307e\u307e\u5e73\u884c\u79fb\u52d5\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"AICharacterControl3.cs\" data-lang=\"C#\"><code>                \/\/ \u30e9\u30b9\u30af\u3061\u3083\u3093\u3092\u30db\u30fc\u30e0\u30dd\u30b8\u30b7\u30e7\u30f3\u307e\u3067\u8a98\u5c0e\u3059\u308b\n                agent.SetDestination(_rusk_home_point.position);   \/\/ \u76ee\u6a19\u3092\u30bb\u30c3\u30c8\n                agent.stoppingDistance = bstop_distance;   \/\/0.5\n                agent.speed = agent_speed_far;\n                if (exec_once)\n                {\n                    exec_once = false;\n                    break;  \/\/ SetDestination()\u76f4\u5f8c\u306fagent.remainingDistance\u304c\u3059\u3050\u306b\u8a08\u7b97\u3055\u308c\u306a\u3044\u306e\u3067\u4e00\u65e6\u623b\u308b\n                }\n                \/\/ \u5230\u7740\u5224\u5b9a \n                if (agent.remainingDistance &gt; agent.stoppingDistance)\n                {\n                    \/\/ \u76ee\u6a19\u307e\u3067\u306e\u8ddd\u96e2\u304c\u3042\u308b\u5834\u5408\n                    character.Move3(agent.desiredVelocity, 0);\n                    ashioto(true);\n                }\n                else\n                {   \/\/ \u505c\u6b62\u7bc4\u56f2\u5185\u306b\u5165\u3063\u305f\u5834\u5408\n                    ashioto(false);\n                    character.Move3(Vector3.zero, 0);\n                    houchitime = 0f;\n                    state++;\n                }<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3069\u3046\u3084\u3089 SetDestination()\u3067\u76ee\u6a19\u3092\u8a2d\u5b9a\u3057\u305f\u76f4\u5f8c\u306f\u3059\u3050\u306b\u8a08\u7b97\u3055\u308c\u306a\u3044\u3088\u3046\u3067\u30011\u30d5\u30ec\u30fc\u30e0\u9032\u3081\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u305d\u3053\u3067exec_once\u3068\u3044\u3046\u30d5\u30e9\u30b0\u3092\u4f5c\u3063\u3066\u3001\u5224\u5b9a\u306f2\u30d5\u30ec\u30fc\u30e0\u76ee\u304b\u3089\u884c\u3046\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">(2) \u5f85\u6a5f\uff08\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u30dc\u30fc\u30eb\u3092\u6301\u3063\u305f\u3053\u3068\u3092\u691c\u77e5\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u30dc\u30fc\u30eb\u3092\u6301\u3063\u305f\u3089\u3001\u30dc\u30fc\u30eb\u304c\u6301\u305f\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u60c5\u5831\u3068\u3001\u8ab0\u304c\u6301\u3063\u305f\u304b\u3068\u3044\u3046\u60c5\u5831\u304c\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059\u3002\u300c\u8ab0\u304c\u300d\u3068\u3044\u3046\u306e\u306f\u3053\u306e\u30b2\u30fc\u30e0\u306e\u3068\u3066\u3082\u91cd\u8981\u306a\u90e8\u5206\u3067\u3001\u30dc\u30fc\u30eb\u3092\u62fe\u3063\u305f\u3042\u3068\u3001\u8ab0\u306e\u3068\u3053\u308d\u306b\u6e21\u3057\u306b\u884c\u304f\u304b\u3092\u6c7a\u3081\u308b\u306e\u304c\u3053\u306e\u90e8\u5206\u3067\u3059\u3002\u30dc\u30fc\u30eb\u306b\u306fVRC Pickup\u3068VRC Object Sync\u304c\u30a2\u30bf\u30c3\u30c1\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30dc\u30fc\u30eb\u3092\u3064\u304b\u3093\u3067\u6295\u3052\u305f\u308a\u3001\u4f4d\u7f6e\u304c\u4ed6\u306e\u30d7\u30ec\u30a4\u30e4\u30fc\u3068\u540c\u671f\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"BeachBall.cs\" data-lang=\"C#\"><code>    \/\/ \u540c\u671f\u3059\u308b\u5909\u6570\n    [UdonSynced(UdonSyncMode.None)] public bool ispick = false;\n\n    public override void OnPickup()\n    {\n        \/\/ \u30dc\u30fc\u30eb\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30aa\u30fc\u30ca\u30fc\u3092\u5909\u66f4\u3059\u308b\n        if (!Networking.IsOwner(Networking.LocalPlayer, this.gameObject))\n        {\n            Networking.SetOwner(Networking.LocalPlayer, this.gameObject); \/\/ \u6301\u3063\u305f\u4eba\u3092\u30aa\u30fc\u30ca\u30fc\u306b\u3059\u308b\n        }\n        ispick = true;\n        rb.velocity = Vector3.zero;\n        \/\/BallGravityOn();    \/\/ \u91cd\u529b\u6709\u52b9\n    }<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dc\u30fc\u30eb\u304c\u6301\u305f\u308c\u308b\u3068 ispick \u304ctrue\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u5024\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5074\u304b\u3089 ball.ispick \u3068\u3044\u3046\u5f62\u3067\u8aad\u307f\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002GetProgramVariable() \u3092\u4f7f\u3063\u3066\u8aad\u307f\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"AICharacterControl3.cs\" data-lang=\"C#\"><code>                        udon = (UdonBehaviour)ball.GetComponent(typeof(UdonBehaviour));\n                        if (udon != null && (bool)udon.GetProgramVariable(&quot;ispick&quot;))    \/\/ \u30dc\u30fc\u30eb\u3092\u6301\u3063\u305f\u3089<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dc\u30fc\u30eb\u306e ispick \u3068\u3044\u3046\u5909\u6570\u306f\u540c\u671f\u3055\u308c\u3066\u3044\u3066\u3001\u540c\u3058\u30ef\u30fc\u30eb\u30c9\u5185\u306b\u3044\u308b\u4eba\u3082\u5168\u54e1\u540c\u3058\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u306a\u305c\u3053\u3046\u3086\u3046\u3053\u3068\u304c\u5fc5\u8981\u304b\u3068\u3044\u3046\u3068\u3001<a rel=\"noreferrer noopener\" href=\"https:\/\/akibabara.com\/blog\/6130.html\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u3001NPC\u306f\u305d\u308c\u305e\u308c\u306e\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u52d5\u3044\u3066\u3044\u305f\u3081\u3001\u540c\u671f\u3057\u3066\u52d5\u3044\u3066\u3044\u308b\u3082\u306e\u3068\u3001\u540c\u671f\u3057\u3066\u306a\u3044\u3082\u306e\u306e\u52d5\u304d\u3092\u5408\u308f\u305b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u9045\u5ef6\u304c\u3042\u308b\u306e\u3067\u591a\u5c11\u4f4d\u7f6e\u304c\u305a\u308c\u305f\u308a\u3082\u3057\u307e\u3059\u304c\u3001\u8ab0\u304c\u30dc\u30fc\u30eb\u3092\u6295\u3052\u305f\u3068\u304b\u3001\u8ab0\u306e\u3068\u3053\u308d\u306b\u30dc\u30fc\u30eb\u3092\u6e21\u3057\u306b\u884c\u304f\u306e\u304b\u3001\u3068\u3044\u3046\u52d5\u4f5c\u304c\u540c\u3058\u306b\u306a\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">(3) \u6295\u3052\u305f\u30dc\u30fc\u30eb\u3092\u8ffd\u3044\u304b\u3051\u308b\uff08\u30dc\u30fc\u30eb\u3092\u96e2\u3057\u305f\u3053\u3068\u3092\u691c\u77e5\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dc\u30fc\u30eb\u3092\u96e2\u3057\u305f\u3001\u3064\u307e\u308a\u6295\u3052\u305f\u3053\u3068\u3092\u691c\u51fa\u3057\u307e\u3059\u3002\u524d\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u3084\u3063\u305f ispick \u304cfalse\u306b\u306a\u3063\u305f\u3053\u3068\u3092\u691c\u77e5\u3057\u305f\u3089\u3001\u30e9\u30b9\u30af\u3061\u3083\u3093\u306e\u76ee\u6a19\u5ea7\u6a19\u3092\u30dc\u30fc\u30eb\u306e\u5ea7\u6a19\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u30dc\u30fc\u30eb\u3092\u8ffd\u3044\u304b\u3051\u308b\u3068\u3044\u3046\u52d5\u4f5c\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u30dc\u30fc\u30eb\u306e\u6240\u307e\u3067\u305f\u3069\u308a\u7740\u304d\u3001\u8db3\u5143\u306b\u30dc\u30fc\u30eb\u304c\u3042\u3063\u305f\u3089\u3001\u30dc\u30fc\u30eb\u3092\u62fe\u3046\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3057\u307e\u3059\u3002\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30dc\u30fc\u30eb\u3092\u62fe\u3046\u30b7\u30fc\u30f3\u3001\u30dc\u30fc\u30eb\u3092\u6301\u3063\u3066\u623b\u3063\u3066\u304f\u308b\u30b7\u30fc\u30f3\u3001\u30dc\u30fc\u30eb\u3092\u6e21\u3059\u30b7\u30fc\u30f3\u306e3\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002\u30dc\u30fc\u30eb\u306e\u63cf\u753b\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5074\u3067\u884c\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5143\u306e\u30dc\u30fc\u30eb\u306f\u898b\u3048\u306a\u3044\u3088\u3046\u306b\u3057\u306a\u304f\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ballanimationrusk.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"432\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ballanimationrusk-1024x432.webp\" alt=\"\" class=\"wp-image-6258\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ballanimationrusk-1024x432.webp 1024w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ballanimationrusk-300x127.webp 300w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ballanimationrusk-768x324.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ballanimationrusk-1536x648.webp 1536w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ballanimationrusk.webp 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u305c\u6295\u3052\u305f\u30dc\u30fc\u30eb\u3092\u975e\u8868\u793a\u306b\u3057\u3066\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5074\u3067\u5225\u306e\u30dc\u30fc\u30eb\u3092\u898b\u305b\u308b\u306e\u304b\u3068\u3044\u3046\u3068\u3001\u540c\u671f\u306e\u9045\u5ef6\u304c\u539f\u56e0\u3067\u30dc\u30fc\u30eb\u304c\u30e9\u30b9\u30af\u3061\u3083\u3093\u306b\u3064\u3044\u3066\u6765\u306a\u3044\u305f\u3081\u3067\u3059\u3002\u3053\u308c\u3092\u666e\u901a\u306b\u3084\u308b\u3068\u3001\u624b\u306b\u4f55\u3082\u6301\u3063\u3066\u306a\u3044\u72b6\u614b\u3067\u623b\u3063\u3066\u304d\u3066\u3001\u5f8c\u304b\u3089\u30dc\u30fc\u30eb\u304c\u3046\u306b\u3087\u30fc\u3093\u3068\u623b\u3063\u3066\u304f\u308b\u3088\u3046\u306a\u73fe\u8c61\u304c\u767a\u751f\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002NPC\u306f\u30ed\u30fc\u30ab\u30eb\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u306e\u306b\u3001\u30dc\u30fc\u30eb\u304c\u30b0\u30ed\u30fc\u30d0\u30eb\u3067\u540c\u671f\u3057\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002\u3053\u306e\u898b\u305f\u76ee\u306e\u4e0d\u81ea\u7136\u3055\u3092\u89e3\u6d88\u3059\u308b\u305f\u3081\u306b\u3001\u9014\u4e2d\u3092\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5316\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"AICharacterControl3.cs\" data-lang=\"C#\"><code>                        \/\/ \u505c\u6b62\u7bc4\u56f2\u5185\u306b\u5165\u3063\u305f\u5834\u5408\n                        ashioto(false);\n                        if (check_target_near() == 2)\n                        {\n                            udon.SendCustomEvent(&quot;BallStop&quot;);\n                            udon.SendCustomEvent(&quot;BallHide&quot;);\n                            state++;\n                            character.Move3(Vector3.zero, 1);   \/\/ \u62fe\u3046\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\n                            remain = 1.1f;\n                            WDCstop();\n                        }<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u30dc\u30fc\u30eb\u306e\u6240\u306b\u5230\u9054\u3057\u3066\u4e14\u3064\u8db3\u5143\u306b\u30dc\u30fc\u30eb\u304c\u3042\u3063\u305f\u3089\uff08\u4f4d\u7f6e\u306e\u8a08\u7b97\u65b9\u6cd5\u306f<a rel=\"noreferrer noopener\" href=\"https:\/\/akibabara.com\/blog\/6130.html\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3092\u53c2\u7167\uff09\u3001BallHide() \u3067\u30dc\u30fc\u30eb\u3092\u6d88\u3057\u307e\u3059\u3002\u307e\u305f\u3053\u306e\u307e\u307e\u3060\u3068\u30dc\u30fc\u30eb\u306e\u52a0\u901f\u304c\u3064\u3044\u305f\u307e\u307e\u3067\u3001\u518d\u8868\u793a\u3057\u305f\u3068\u304d\u306b\u5439\u3063\u98db\u3093\u3067\u3044\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001BallStop() \u3067\u9759\u6b62\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"BeachBall.cs\" data-lang=\"C#\"><code>    \/\/ \u30dc\u30fc\u30eb\u306e\u9759\u6b62\n    public void BallStop()\n    {\n        rb.velocity = Vector3.zero;\n        rb.angularVelocity = Vector3.zero;\n    }<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">(4) \u30dc\u30fc\u30eb\u3092\u62fe\u3046\uff08\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u518d\u751f\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dc\u30fc\u30eb\u3092\u62fe\u3046\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3057\u3066\u3001\u62fe\u3044\u7d42\u308f\u308b\u306e\u3092\u5f85\u3064\u3060\u3051\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">(5) \u6295\u3052\u305f\u4eba\u306e\u3068\u3053\u308d\u307e\u3067\u3001\u30dc\u30fc\u30eb\u3092\u6301\u3063\u3066\u8fd1\u3065\u3044\u3066\u304f\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dc\u30fc\u30eb\u3092\u62fe\u3044\u7d42\u308f\u3063\u305f\u3089\u3001\u30dc\u30fc\u30eb\u3092\u6295\u3052\u305f\u4eba\u306e\u3068\u3053\u308d\u306b\u623b\u3063\u3066\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u91cd\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u304c\u3001(2)\u306e\u3068\u304d\u306b\u884c\u3063\u305f\u30aa\u30fc\u30ca\u30fc\u306e\u5909\u66f4\u3002\u30dc\u30fc\u30eb\u3092\u6301\u3063\u305f\u4eba\u3092\u3001\u30dc\u30fc\u30eb\u306e\u30aa\u30fc\u30ca\u30fc\u306b\u3057\u305f\u306e\u306f\u5909\u6570\u3092\u540c\u671f\u3055\u305b\u308b\u305f\u3081\u3060\u3051\u3067\u306a\u304f\u3001\u8ab0\u306e\u3068\u3053\u308d\u306b\u623b\u3063\u3066\u304f\u308b\u304b\u3068\u3044\u3046\u60c5\u5831\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u3067\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30aa\u30fc\u30ca\u30fc\u304c\u308f\u304b\u308c\u3070\u30aa\u30fc\u30ca\u30fc\u306e\u4f4d\u7f6e\u304c\u53d6\u5f97\u3067\u304d\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u30e9\u30b9\u30af\u3061\u3083\u3093\u306e\u6b21\u306e\u76ee\u6a19\u5730\u70b9\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002Networking.GetOwner(ball) \u3067\u30dc\u30fc\u30eb\u306e\u30aa\u30fc\u30ca\u30fc\u3092\u53d6\u5f97\u3057\u3001owner.GetTrackingData().position \u3067\u30aa\u30fc\u30ca\u30fc\u306e\u5ea7\u6a19\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"AICharacterControl3.cs\" data-lang=\"C#\"><code>                \/\/ \u30dc\u30fc\u30eb\u3092\u6295\u3052\u305f\u4eba(Owner)\u306e\u3068\u3053\u308d\u306b\u623b\u3063\u3066\u304f\u308b\n                ball = _tgroot.transform.GetChild(selected - 1).gameObject;\n                owner = Networking.GetOwner(ball);\n                if (owner != null)\n                    targetpos = owner.GetTrackingData(VRCPlayerApi.TrackingDataType.Head).position; \/\/ \u30aa\u30fc\u30ca\u30fc\u306e\u982d\u4f4d\u7f6e\n                agent.SetDestination(targetpos);   \/\/ \u76ee\u6a19\u3092\u30bb\u30c3\u30c8<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">(6) \u30dc\u30fc\u30eb\u3092\u6e21\u3059<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u7121\u4e8b\u30dc\u30fc\u30eb\u3092\u6301\u3063\u3066\u623b\u3063\u3066\u304d\u305f\u3089\u3001\u30dc\u30fc\u30eb\u3092\u6e21\u3059\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u751f\u3057\u307e\u3059\u3002\u30dc\u30fc\u30eb\u3092\u5dee\u3057\u4f38\u3079\u305f\u77ac\u9593\u306b\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3067\u8868\u793a\u3057\u3066\u3044\u308b\u30dc\u30fc\u30eb\u3068\u3001\u5b9f\u969b\u306e\u30dc\u30fc\u30eb\u3092\u5165\u308c\u66ff\u3048\u307e\u3059\u3002\u30dc\u30fc\u30eb\u3092\u53d7\u3051\u53d6\u3063\u3066\u4e00\u9023\u306e\u52d5\u4f5c\u3092\u7d42\u4e86\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u624b\u306b\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u308b\uff08VRC Pickup\u304c\u3064\u3044\u305f\uff09\u30dc\u30fc\u30eb\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5b9f\u306f\u3053\u3053\u3067\u8272\u3005\u3068\u5384\u4ecb\u306a\u554f\u984c\u306b\u3076\u3064\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dc\u30fc\u30eb\u306f\u672c\u7269\u306e\u30dc\u30fc\u30eb\u306e\u3088\u3046\u306b\u3001\u6295\u3052\u305f\u308a\u91cd\u529b\u306b\u5f93\u3063\u3066\u843d\u4e0b\u3057\u305f\u308a\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u30dc\u30fc\u30eb\u3092\u6e21\u3059\u3068\u304d\u306f\u307e\u3060\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u6301\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30dc\u30fc\u30eb\u306f\u9759\u6b62\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u8003\u3048\u305f\u306e\u306f\u3001RigidBody\u3067Use Gravity\u3092\u30aa\u30d5\u306b\u3057\u3066\u3001Is Kinematic\u3092\u30aa\u30f3\u306b\u3059\u308b\u65b9\u6cd5\u3002\u3068\u3053\u308d\u304c\u30d7\u30ed\u30b0\u30e9\u30e0\u4e0a\u3067\u3053\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3082\u3001\u6b21\u306e\u30d5\u30ec\u30fc\u30e0\u306b\u9032\u3080\u3068\u30dc\u30fc\u30eb\u304c\u843d\u3061\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3069\u3046\u3084\u3089\u30dc\u30fc\u30eb\u306b\u4ed8\u3051\u305fVRC Pickup\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u521d\u671f\u72b6\u614b\u3092\u4e0a\u66f8\u304d\u3057\u3066\u3057\u307e\u3046\u307d\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u3053\u3067\u30b3\u30e9\u30a4\u30c0\u30fc\u306e\u3064\u3044\u305f\u900f\u660e\u306a\u677f\u3092\u30dc\u30fc\u30eb\u306e\u4e0b\u306b\u7f6e\u3044\u3066\u3001\u30dc\u30fc\u30eb\u304c\u843d\u4e0b\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u30dc\u30fc\u30eb\u306f\u9759\u6b62\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u3002\u3068\u3053\u308d\u304c\u307e\u305f\u554f\u984c\u304c!?<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"960\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_rasukballhold-1-1024x960.webp\" alt=\"\" class=\"wp-image-6263\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_rasukballhold-1-1024x960.webp 1024w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_rasukballhold-1-300x281.webp 300w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_rasukballhold-1-768x720.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_rasukballhold-1.webp 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"1024\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_unitywalkthrough-902x1024.webp\" alt=\"\" class=\"wp-image-6262\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_unitywalkthrough-902x1024.webp 902w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_unitywalkthrough-264x300.webp 264w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_unitywalkthrough-768x872.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_unitywalkthrough.webp 1057w\" sizes=\"auto, (max-width: 902px) 100vw, 902px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u898b\u3048\u306a\u3044\u677f\u306b\u30b3\u30e9\u30a4\u30c0\u30fc\u304c\u3042\u308b\u305b\u3044\u3067\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u5f15\u3063\u304b\u304b\u3063\u3066\u3057\u307e\u3063\u305f\u308a\u3001\u30b3\u30e9\u30a4\u30c0\u30fc\u306e\u4e0a\u306b\u4e57\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u3002\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u5439\u3063\u98db\u3073\u307e\u3059\u3002\u7b11 \u3044\u308d\u3044\u308d\u8abf\u3079\u305f\u3068\u3053\u308d\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u3068\u885d\u7a81\u5224\u5b9a\u3092\u884c\u308f\u306a\u3044\u30ec\u30a4\u30e4\u30fc\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\uff08\u53c2\u8003<a rel=\"noreferrer noopener\" href=\"https:\/\/vrcprog.hatenablog.jp\/entry\/data-layers\" target=\"_blank\">\u2192Layers<\/a>\uff09\u3053\u308c\u3092\u898b\u308b\u3068 Walkthrough \u3068\u3044\u3046\u30ec\u30a4\u30e4\u30fc\u306f Player \u3068\u5e72\u6e09\u3057\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3001\u3053\u306e\u677f\u306e\u30ec\u30a4\u30e4\u30fc\u3092 Walkthrough \u306b\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u7121\u4e8b\u3001\u30b3\u30e9\u30a4\u30c0\u30fc\u306b\u5f15\u3063\u304b\u304b\u308b\u3053\u3068\u3082\u306a\u304f\u3001\u30dc\u30fc\u30eb\u3082\u843d\u3061\u306a\u3044\u3088\u3046\u306b\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u3053\u3053\u3067\u3082\u307e\u305f\u8b0e\u306a\u73fe\u8c61\u304c\u8d77\u3053\u308a\u307e\u3057\u305f\u3002\u4e00\u5b9a\u6642\u9593\u5185\u306b\u30dc\u30fc\u30eb\u3092\u53d7\u3051\u53d6\u3089\u306a\u3044\u3068\u30dc\u30fc\u30eb\u3092\u5e8a\u306b\u843d\u3068\u3059\u306e\u3067\u3059\u304c\u3001\u677f\u3092\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3057\u3066\u3082\u30dc\u30fc\u30eb\u304c\u7a7a\u4e2d\u306b\u9759\u6b62\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u306a\u305c\u304b\u91cd\u529b\u306b\u5f93\u3063\u3066\u304f\u308c\u307e\u305b\u3093\u3002\u305d\u3053\u3067\u5e8a\u306b\u5411\u3051\u3066\u30dc\u30fc\u30eb\u3092\u62bc\u3059\u3053\u3068\u3067\u3001\u30dc\u30fc\u30eb\u3092\u843d\u3068\u3059\u3068\u3044\u3046\u51e6\u7406\u3092\u5165\u308c\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"AICharacterControl3.cs\" data-lang=\"C#\"><code>                    _myita.SetActive(false); \/\/ \u898b\u3048\u306a\u3044\u677f\u3092\u30aa\u30d5\n                    ball.GetComponent&lt;Rigidbody&gt;().AddForce(Vector3.down);  \/\/ \u30dc\u30fc\u30eb\u304c\u843d\u3061\u306a\u3044\u30d0\u30b0\u5bfe\u7b56<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5f8c\u306f\u30dc\u30fc\u30eb\u3092\u53d7\u3051\u53d6\u3063\u305f\u304b\u3001\u306a\u3067\u306a\u3067\u3055\u308c\u305f\u304b\u3001\u30dc\u30fc\u30eb\u3092\u53d6\u3089\u305a\u306b10\u79d2\u7d4c\u904e\u3057\u305f\u304b\u3001\u58c1\u306e\u30b9\u30a4\u30c3\u30c1\u3092\u30aa\u30d5\u306b\u3059\u308b\u3068\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u9032\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">(7) \u306a\u3067\u3089\u308c\u305f\u3089\u30cb\u30b3\u30cb\u30b3\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3061\u3083\u3093\u3068\u30dc\u30fc\u30eb\u3092\u6301\u3063\u3066\u304d\u305f\u3089\u8912\u3081\u3066\u3042\u3052\u305f\u3044\u3001\u306a\u3067\u3089\u308c\u305f\u3089\u559c\u3073\u305f\u3044\u3001\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u306a\u3067\u3089\u308c\u305f\u3053\u3068\u3092\u691c\u51fa\u3059\u308b\u305f\u3081\u306b\u3001\u30e9\u30b9\u30af\u3061\u3083\u3093\u306e\u982d\u3068\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u306e\u8ddd\u96e2\u3092\u6c42\u3081\u3066\u3001\u4e00\u5b9a\u8ddd\u96e2\u5185\u306b\u5165\u3063\u305f\u3089\u306a\u3067\u3089\u308c\u3066\u308b\u3068\u5224\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"AICharacterControl3.cs\" data-lang=\"C#\"><code>        \/\/ \u30e9\u30b9\u30af\u3061\u3083\u3093\u306e\u306a\u3067\u306a\u3067\u30dd\u30a4\u30f3\u30c8\uff08\u982d\uff09\u3068\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u306e\u8ddd\u96e2\u3092\u8a08\u7b97\u3059\u308b\n        if (selected &gt; 0)   \/\/ \u30dc\u30fc\u30eb\u3092\u6295\u3052\u305f\u5f8c\u306f\u6295\u3052\u305f\u4eba\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\n        {\n            GameObject ball = _tgroot.transform.GetChild(selected - 1).gameObject;\n            VRCPlayerApi owner = Networking.GetOwner(ball);\n            if (owner != null)\n            {\n                distance_r = Vector3.Distance(owner.GetBonePosition(HumanBodyBones.RightHand), _nadePosition.position);\n                distance_l = Vector3.Distance(owner.GetBonePosition(HumanBodyBones.LeftHand), _nadePosition.position);\n                if (Mathf.Min(distance_r, distance_l) &lt; nadenade_distance) naderemain = nadenade_time;\n            }\n        }\n        else \/\/ \u305d\u308c\u4ee5\u5916\u306f\u30ed\u30fc\u30ab\u30eb\u30e6\u30fc\u30b6\u30fc\u3092\u898b\u308b\n        {\n            distance_r = Vector3.Distance(Networking.LocalPlayer.GetBonePosition(HumanBodyBones.RightHand), _nadePosition.position);\n            distance_l = Vector3.Distance(Networking.LocalPlayer.GetBonePosition(HumanBodyBones.LeftHand), _nadePosition.position);\n            if (Mathf.Min(distance_r, distance_l) &lt; nadenade_distance) naderemain = nadenade_time;\n        }<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u3067\u3089\u308c\u308b\u4f4d\u7f6e\u306f\u982d\u306e\u4e0a\u90e8\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u982d\u306e\u30dc\u30fc\u30f3\u3067\u306f\u306a\u304f\u3001\u7a7a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u982d\u306e\u4e2d\u306b\u8a2d\u7f6e\u3057\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u982d\u3084\u4f53\u306f\u8996\u7dda\u8ffd\u5f93\u3067\u52d5\u304f\u306e\u3067\u3001\u982d\u306e\u30dc\u30fc\u30f3\uff08Head\uff09\u306e\u4e2d\u306b\u5165\u308c\u3066\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3067\u982d\u304c\u52d5\u3044\u3066\u3082\u4f4d\u7f6e\u304c\u8ffd\u5f93\u3057\u307e\u3059\u3002\u6b21\u306b\u89e6\u308b\u65b9\u306e\u624b\u306f\u3001GetBonePosition()\u3067\u53d6\u5f97\u3002\u53f3\u624b\u5de6\u624b\u305d\u308c\u305e\u308c\u306e\u8fd1\u3044\u65b9\u306e\u8ddd\u96e2\u304c\u3001\u4e00\u5b9a\u306e\u7bc4\u56f2\u5185\u306b\u3042\u308b\u304b\u5224\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u3067\u3082\u623b\u3063\u3066\u304f\u308b\u3068\u304d\u540c\u69d8\u306b\u3001\u30dc\u30fc\u30eb\u306e\u30aa\u30fc\u30ca\u30fc\u3092\u5bfe\u8c61\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u306f\u30d7\u30ec\u30a4\u30e4\u30fc\u5168\u54e1\u3067\u3082\u3088\u304b\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u305d\u3046\u3059\u308b\u30681\u30d5\u30ec\u30fc\u30e0\u3054\u3068\u306b\u30ef\u30fc\u30eb\u30c9\u5185\u306b\u3044\u308b\u5168\u54e1\u306e\u4f4d\u7f6e\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u3001\u305d\u3053\u3067\u8ca0\u8377\u304c\u4e0a\u304c\u3063\u3066\u3082\u56f0\u308a\u307e\u3059\u3057\u3001\u305d\u3053\u307e\u3067\u3084\u3089\u306a\u304f\u3066\u3082\u3044\u3044\u304b\u306a\u3041\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002\u3042\u3068\u5f85\u6a5f\u6642\u306f\u30ed\u30fc\u30ab\u30eb\u30d7\u30ec\u30a4\u30e4\u30fc\u306b\u306f\u53cd\u5fdc\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">(8) \u7d42\u4e86<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f85\u6a5f\u72b6\u614b(2)\u306b\u623b\u308a\u307e\u3059\u3002\u8996\u7dda\u8ffd\u5f93\u3057\u3066\u3044\u308b\u72b6\u614b\u304b\u3089\u6025\u6fc0\u306b\u9854\u304c\u52d5\u304b\u306a\u3044\u3088\u3046\u306b\u3001\u5c11\u3057\u306e\u9593\u5f85\u6a5f\u3059\u308b\u3060\u3051\u306e\u7b87\u6240\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">(9) \u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u304a\u3046\u3061\u306b\u5e30\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30dc\u30bf\u30f3\u3092\u30aa\u30d5\u306b\u3057\u305f\u77ac\u9593\u3001\u76ee\u306e\u524d\u306b\u3044\u305f\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u6d88\u6ec5\u3059\u308b\u306e\u306f\u3061\u3087\u3063\u3068\u5473\u6c17\u306a\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u304a\u3046\u3061\u306b\u5e30\u308b\u306e\u304c\u3053\u306e\u7b87\u6240\u3067\u3059\u3002\u304a\u3046\u3061\u306e\u5834\u6240\u306f\u30c9\u30a2\u306e\u5916\u5074\u306b\u3042\u308a\u3001\u30c9\u30a2\u306e\u5916\u307e\u3067\u30e9\u30b9\u30af\u3061\u3083\u3093\u3092\u8a98\u5c0e\u3057\u307e\u3059\u3002\u304a\u3046\u3061\u306b\u7740\u3044\u305f\u3089\u30dc\u30fc\u30eb\u3092\u6d88\u3057\u3066\u3001(0) \u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d7\u30ed\u30b0\u30e9\u30e0\u305d\u306e\u307b\u304b<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u3057\u3070\u3089\u304f\u3057\u305f\u3089\u52dd\u624b\u306b\u5e30\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">30\u79d2\u9593\u904a\u3093\u3067\u304f\u308c\u306a\u304b\u3063\u305f\u3089\u52dd\u624b\u306b\u5e30\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u7b11 (2)\u3067 houchitime \u3092\u30ab\u30a6\u30f3\u30c8\u3057\u3066\u3044\u304d\u300130\u79d2\u7d4c\u3063\u305f\u3089  (9) \u306b\u79fb\u884c\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3053\u306e\u5834\u5408\u306f\u30dc\u30fc\u30eb\u306f\u6d88\u3055\u305a\u3001\u518d\u3073\u30dc\u30fc\u30eb\u3092\u6301\u3066\u3070\u8fd1\u3065\u3044\u3066\u304f\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Wacth Dog Timer<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Wacth Dog Timer (WDC)\u3068\u3044\u3046\u306e\u306f\u3001\u30de\u30a4\u30b3\u30f3\u306a\u3069\u3067\u6a5f\u5668\u304c\u6b63\u5e38\u306b\u4f5c\u52d5\u3057\u306a\u3044\u5834\u5408\u306b\u81ea\u52d5\u7684\u306b\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u6a5f\u80fd\u3067\u3059\u3002\u3053\u306e\u30ef\u30fc\u30eb\u30c9\u3067\u8003\u3048\u3089\u308c\u308b\u306e\u306f\u3001\u30dc\u30fc\u30eb\u304c\u60f3\u5b9a\u5916\u306e\u5834\u6240\u306b\u884c\u3063\u3066\u30e9\u30b9\u30af\u3061\u3083\u3093\u304c\u305f\u3069\u308a\u7740\u3051\u306a\u3044\u30b1\u30fc\u30b9\u3084\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u30dc\u30fc\u30eb\u3092\u53d7\u3051\u53d6\u308b\u524d\u306b\u30ef\u30fc\u30eb\u30c9\u304b\u3089\u629c\u3051\u3066\u623b\u308a\u5148\u304c\u7121\u3044\u3088\u3046\u306a\u30b1\u30fc\u30b9\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u7121\u9650\u30eb\u30fc\u30d7\u306b\u9665\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30dc\u30fc\u30eb\u3092\u6295\u3052\u3066\u304b\u3089\u305f\u3069\u308a\u7740\u304f\u307e\u3067\u306b30\u79d2\u4ee5\u4e0a\u304b\u304b\u3063\u305f\u3089\u3001\u5f37\u5236\u30ea\u30bb\u30c3\u30c8\u3092\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-file=\"AICharacterControl3.cs\" data-lang=\"C#\"><code>    \/\/ Watch Dog(Cat?) Timer \u884c\u52d5\u4e0d\u80fd\u306b\u9665\u3063\u305f\u30e9\u30b9\u30af\u3061\u3083\u3093\u3092\u6551\u52a9\n    private void WDCcheck()\n    {\n        if (!wdc_on) return;\n        wdctimer -= Time.deltaTime;\n        if (wdctimer &lt; 0f)\n        {\n            wdc_on = false;\n            Debug.Log(&quot;[Watch Dog Timer] Auto Reset!!&quot;);\n            Reset();\n        }\n    }\n    private void WDCstart(float wdcsec)\n    {\n        wdc_on = true;\n        wdctimer = wdcsec;\n    }\n    private void WDCstop()\n    {\n        wdc_on = false;\n    }<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">WDC\u3092\u958b\u59cb\u3057\u305f\u3044\u5834\u6240\u3067 WDCstart() \u3067\u30bf\u30a4\u30de\u30fc\u3092\u30b9\u30bf\u30fc\u30c8\u3057\u3001\u691c\u51fa\u3057\u305f\u3044\u5834\u6240\u306b WDCcheck() \u3092\u5165\u308c\u308b\u3053\u3068\u3067\u3001\u4e00\u5b9a\u6642\u9593\u4ee5\u4e0a\u305d\u306e\u9593\u3092\u52d5\u3044\u3066\u3044\u308b\u5834\u5408\u306b Reset() \u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8868\u60c5\u306e\u5909\u66f4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8868\u60c5\u306e\u5909\u66f4\u306f\u30b7\u30a7\u30a4\u30d7\u30ad\u30fc\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u3067\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002\u306d\u3053\u3058\u3083\u3089\u3057\u7248\u306e ThirdPersonCharacter2.cs \u3067\u306f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u64cd\u4f5c\u3059\u308b\u95a2\u6570 Move2() \u3068\u9023\u52d5\u3057\u3066\u52d5\u4f5c\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306f\u65b0\u305f\u306b Emote() \u3068\u3044\u3046\u95a2\u6570\u3092\u72ec\u7acb\u3055\u305b\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-lang=\"C#\"><code>\tstring[] shapekeys_nico = new string[] { &quot;smile&quot;, &quot;mayu_down&quot;, &quot;kuchi_wa&quot;, &quot;cheek&quot; };   \/\/ \u76ee\uff08\u30cb\u30b3\u30cb\u30b3\uff09\u53e3\uff08\u30ef\uff09\n\tstring[] shapekeys_nico_rev = new string[] { &quot;kuchi_pokan&quot; };\n\tstring[] shapekeys_ratio_name = new string[] { &quot;mayu_down&quot;, &quot;kuchi_wa&quot; };    \/\/ \u30b7\u30a7\u30a4\u30d7\u30ad\u30fc\u306e\u9069\u7528\u6bd4\u7387\u8abf\u6574\n\tfloat[] shapekeys_ratio_value = new float[] { 0.5f, 0.8f };    \/\/ \u305d\u306e\u500d\u7387\n\n\t\/\/ \u8868\u60c5\u3092\u66f4\u65b0\u3059\u308b\n\tpublic void Emote(int place, float weight)\n\t{\n\t\tmabataki_on = true;\n\t\tkuchi_on = true;\n\t\tswitch (place)\n\t\t{\n\t\t\t\/\/ \u7701\u7565\n\t\t\tcase 3: \/\/ \u76ee\uff08\u30cb\u30b3\u30cb\u30b3\uff09\u53e3\uff08\u30ef\uff09\n\t\t\t\tforeach (string name in shapekeys_nico) SetShapekey(name, weight);\n\t\t\t\tforeach (string name in shapekeys_nico_rev) SetShapekey(name, 0f);\n\t\t\t\tmabataki_on = (weight &lt;= 0f);\n\t\t\t\tkuchi_on = false;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t\/\/ \u30b7\u30a7\u30a4\u30d7\u30ad\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\n\tprivate void SetShapekey(string shapekeyname, float weight)\n\t{\n\t\tint idx = _Face.sharedMesh.GetBlendShapeIndex(shapekeyname);\n\t\tif (idx &gt;= 0)\n\t\t{\n\t\t\tfor (var i = 0; i &lt; shapekeys_ratio_name.Length; i++)\n\t\t\t\tif (shapekeyname == shapekeys_ratio_name[i]) weight *= shapekeys_ratio_value[i];\n\t\t\t_Face.SetBlendShapeWeight(idx, weight);\n\t\t}\n\t}<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b7\u30a7\u30a4\u30d7\u30ad\u30fc\u306f\u30aa\u30f3\u304b\u30aa\u30d5\u304b\u3067\u306f\u306a\u304f\u30010f\uff5e100f\u307e\u3067\u306e\u5024\u304c\u8a2d\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u307e\u3059\u3002\u5834\u6240\u306b\u3088\u3063\u3066\u306f100f\u306b\u3059\u308b\u3068\u304a\u304b\u3057\u304f\u306a\u3063\u305f\u308a\u3001\u4e2d\u9593\u306e\u5024\u306e\u65b9\u304c\u3088\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u3067 shapekeys_ratio_name , shapekeys_ratio_value \u3067\u8abf\u6574\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307e\u3059\u3002\u9023\u60f3\u914d\u5217\u3068\u304b\u4f7f\u3048\u308b\u306a\u3089\uff08\u77e5\u3089\u306a\u3044\u3060\u3051\uff09\u3082\u3063\u3068\u30a4\u30b1\u3066\u308b\u66f8\u304d\u65b9\u304c\u3067\u304d\u308b\u3093\u3067\u3057\u3087\u3046\u3051\u3069\u3001\u307e\u3041\u307b\u3093\u306e\u3061\u3087\u3063\u3068\u3044\u3058\u308a\u305f\u3044\u3060\u3051\u306a\u306e\u3067\u9069\u5f53\u306b\u6e08\u307e\u305b\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4eca\u56de\u306e\u53cd\u7701\u70b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3044\u3084\u3001\u3082\u3046\u53cd\u7701\u70b9\u3092\u3042\u3052\u305f\u3089\u304d\u308a\u304c\u306a\u3044\u3093\u3067\u3059\u304c\u3001\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5236\u5fa1\u5074\uff08ThirdPersonCharacter3.cs\uff09\u3067\u3084\u308b\u3079\u304d\u3053\u3068\u3092\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5074\uff08AICharacterControl3.cs\uff09\u3067\u3084\u3063\u3061\u3083\u3063\u3066\u308b\u3068\u3053\u308d\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u30cb\u30b3\u30cb\u30b3\u3059\u308b\u8868\u60c5\u3092\u3055\u305b\u308b\u5834\u5408\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u304b\u3089 Emote() \u30921\u56de\u547c\u3073\u51fa\u3059\u3060\u3051\u3067\u3084\u308b\u3079\u304d\u306a\u306e\u306b\u3001\u3086\u3063\u304f\u308a\u8868\u60c5\u304c\u5909\u308f\u308b\u3088\u3046\u306bweight\u306e\u5024\u3092\u5909\u3048\u306a\u304c\u3089\u30eb\u30fc\u30d7\u3092\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3046\u3086\u3046\u3053\u3068\u3092\u8003\u3048\u306a\u304f\u3066\u3044\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u30012\u7a2e\u985e\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u5206\u304b\u308c\u3066\u3044\u308b\u306e\u306b\u3001\u5f8c\u304b\u3089\u3042\u308c\u3053\u308c\u8ffd\u52a0\u3057\u3066\u3044\u304f\u3046\u3061\u306b\u3050\u3061\u3083\u3050\u3061\u3083\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3067\u3082\u307e\u3041\u3068\u306b\u304b\u304f\u52d5\u3044\u3066\u308b\u304b\u3089\u30e8\u30b7\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">VRChat\u306e\u30ef\u30fc\u30eb\u30c9\u5236\u4f5c\u306f\u9762\u767d\u3044\uff01<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u5fdc\u3053\u308c\u3067\u4f55\u3068\u304b\u52d5\u304f\u3082\u306e\u304c\u4f5c\u308c\u307e\u3057\u305f\u3002\u7d75\u5fc3\u304c\u7121\u304f\u30663D\u30e2\u30c7\u30eb\u306e\u4f5c\u6210\u3082\u3067\u304d\u306a\u3044\u3088\u3046\u306a\u4eba\u9593\u3067\u3082\u3001\u30a2\u30bb\u30c3\u30c8\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3053\u3046\u3086\u3046\u3082\u306e\u304c\u4f5c\u308c\u308b\u3068\u3044\u3046\u306e\u306f\u9762\u767d\u3044\u3067\u3059\u306d\u3002\u3057\u304b\u3082\u5358\u72ec\u306e\u30a2\u30d7\u30ea\u3068\u304b\u3060\u3068\u3001\u305d\u308c\u3092\u8ab0\u304b\u306b\u30d7\u30ec\u30a4\u3057\u3066\u3082\u3089\u3046\u3060\u3051\u3067\u4e00\u82e6\u52b4\u3067\u3059\u3002\u3067\u3082VRChat\u306a\u3089\u3001VRChat\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u4eba\u306a\u3089\u8ab0\u3067\u3082\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3063\u3066\u6ec5\u8336\u82e6\u8336\u5927\u304d\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3092\u898b\u3066\u3001\u81ea\u5206\u3082\u30ef\u30fc\u30eb\u30c9\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046\uff01\u3068\u601d\u3063\u3066\u3044\u305f\u3060\u3051\u305f\u3089\u5e78\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-1024x576.webp\" alt=\"\" class=\"wp-image-6247\" srcset=\"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-1024x576.webp 1024w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-300x169.webp 300w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-768x432.webp 768w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3-1536x864.webp 1536w, https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_VRChat_Rusk3-3.webp 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u95a2\u9023\u8a18\u4e8b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">(1)  <a href=\"https:\/\/akibabara.com\/blog\/6130.html\">\u3010VRCHat\u3011NPC\u304c\u52d5\u304d\u307e\u308f\u308b\u30ef\u30fc\u30eb\u30c9\u300cNPC Cat toy \u2013 \u306d\u3053\u3058\u3083\u3089\u3057\u904a\u3073\u300d\u3092\u4f5c\u3063\u3066\u307f\u305f<\/a><br>(3) <a href=\"https:\/\/akibabara.com\/blog\/6303.html\">\u3010VRCHat\u3011\u30ef\u30fc\u30eb\u30c9NPC Cat toy\u306b\u30dd\u30c6\u30c1\u3092\u98df\u3079\u3089\u308c\u308b\u6a5f\u80fd\u3092\u8ffd\u52a0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NPC\u304c\u52d5\u304d\u307e\u308f\u308b\u30ef\u30fc\u30eb\u30c9\u300eNPC Cat toy \u2013 \u306d\u3053\u3058\u3083\u3089\u3057\u904a\u3073\u300f\u306b\u3001NPC\u3068\u30dc\u30fc\u30eb\u2026<\/p>\n","protected":false},"author":1,"featured_media":6255,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[122,123,73,82],"class_list":{"0":"post-6240","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-other-topic","8":"tag-vrchat","9":"tag-unity","10":"tag-oculus","11":"tag-vr","12":"three-column","13":"ar-three-column","14":"au-three-column"},"jetpack_featured_media_url":"https:\/\/akibabara.com\/blog\/wp-content\/uploads\/2022\/03\/xn_ruskunity4.webp","jetpack_shortlink":"https:\/\/wp.me\/pavCgQ-1CE","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts\/6240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/comments?post=6240"}],"version-history":[{"count":28,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts\/6240\/revisions"}],"predecessor-version":[{"id":6363,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts\/6240\/revisions\/6363"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/media\/6255"}],"wp:attachment":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/media?parent=6240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/categories?post=6240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/tags?post=6240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}