å ¸åçãªããããã»ã¢ã¤ãã ã®åä½ã¯æ¬¡ã®3ã¤ã åºç¾ãããéåã«æ¹ããã¦è½ã¡ã ä½ãã«ã¶ã¤ãã£ããæ¢ã¾ã ä¸å®ç¯å²å ã«èªãã£ã©ãå ¥ã£ããæå®ã®åä½ãè¡ãåé¤ãã ãã¦ãããã©ããã£ã¦Unityã§è¡¨ç¾ãããï¼ ã¾ã(3)ã®åä½ããSphere Colliderã³ã³ãã¼ãã³ããå¿ è¦ã§Is Triggerãã©ã°ãONã«ããå¿ è¦ãããã (1)ã§å¿ è¦ãªã®ã¯éåã ããªã®ã§RididBodyã³ã³ãã¼ãã³ãã追å ãã¦ç©çæ¼ç®ãæå¹ã«ããã®ã¯éå°ãªæ°ããããã ä»ã«è¯ãæ¹æ³ã主ãã¤ããªã£ãã®ã§RigidBodyã使ãã å®ã¯æåRidigBodyã使ããã«ã¹ã¯ãªããã§å¶å¾¡ãããã¨é å¼µã£ããåºã¨ã®ã³ãªã¸ã§ã³ãã©ããã¦ãæ¤åºã§ããªã£ãã ã©ããå°ãªãã¨ãçæ¹ã«RidigBodyããªãã¨OnTriggerEnter()ãå¼ã°ããªãããã ã (2)ã¯ä½ãã«ã¶ã¤ãã£ããç©çæ¼ç®ãåæ¢ããåä½ãã¢ã¤ãã ãåºã§ãã¦ã³ãã
{{#tags}}- {{label}}
{{/tags}}