ºÇ½ª¹¹¿·¡§ orika_ex_miyako 2024ǯ06·î24Æü(·î) 19:06:21ÍúÎò
¡¡¤¹¤Ç¤ËɬÍפʽèÍý¤Ï CameraController ¥¹¥¯¥ê¥×¥È¦¤ËÍÑ°Õ¤·¤Æ¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢
ARGameManager ¥¹¥¯¥ê¥×¥ÈÆâ¤Ç¡¢ARCamera ¤ËÄɽ¾¤µ¤»¤ëÀßÄê¤ò¼ÂÁõ¤·¤Þ¤¹¡£
¡¡¹ç¤ï¤»¤Æ¡¢¾ã³²Êª¤ËÀÜ¿¨¤·¤¿ºÝ¤ÎÁú¤Î¥¨¥Õ¥§¥¯¥È¤âȯÀ¸¤¹¤ë¤è¤¦¤Ë½¤Àµ¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡°Ê²¼¤ÎÆâÍƤǽçÈ֤˼ÂÁõ¤ò¿Ê¤á¤Æ¤¤¤¤Þ¤¹¡£
ȯŸ£±£°¡¡¡¼ARCamera ¤Î¥×¥ì¥¤¥ä¡¼Äɽ¾µ¡Ç½¤ÈÁú¤Î¥¨¥Õ¥§¥¯¥Èµ¡Ç½¤Î¼ÂÁõ¡¼
£±£´¡¥ARCamera ¤Ë¥×¥ì¥¤¥ä¡¼Äɽ¾µ¡Ç½¤ò¼ÂÁõ¤¹¤ë £±£µ¡¥ARCamera ¤Ë¤âÁú¤Î¥¨¥Õ¥§¥¯¥È¤¬È¯À¸¤¹¤ëµ¡Ç½¤ò¼ÂÁõ¤¹¤ë
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦½èÍý¤ÎÆâÍƤò¼«Ê¬¤Ç¹Í¤¨¤ë
¡¡Ê¿ÌÌ´¶ÃΤ˹ç¤ï¤»¤Æ Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤¹¤ë¤¿¤á¡¢Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÏºÇ½é¤«¤é¥Ò¥¨¥é¥ë¥¡¼¤Ë¤Ï¸ºß¤·¤Æ¤¤¤Ê¤¤¾õÂ֤ˤʤäƤ¤¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢¥Ú¥ó¥®¥ó¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤â¡¢¥Ò¥¨¥é¥ë¥¡¼¤Ë¤ÏºÇ½é¤«¤é¸ºß¤·¤Æ¤¤¤Þ¤»¤ó¡£
¡¡¤è¤Ã¤Æ¡¢¥Ú¥ó¥®¥ó¤Î¾ðÊó¤ò¾¤Î¥¯¥é¥¹¤Ç³èÍѤ¹¤ë¤¿¤á¤Ë¤Ï¡¢Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤·¤¿¸å¤Ë¡¢¤½¤Î¾ðÊó¤òÊÑ¿ôÆâ¤Ë¼èÆÀ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
º£²ó¤Î¾ì¹ç¤Ç¤¢¤ì¤Ð¡¢CameraController ¥¯¥é¥¹Æâ¤Ë¤¢¤ë playerObj ÊÑ¿ô¤¬ Null ¤Î¾õÂ֤ˤʤäƤ·¤Þ¤Ã¤Æ¤¤¤ë¤¿¤á¡¢
¤³¤ÎÉôʬ¤Ë Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤·¤Æ¥Ú¥ó¥®¥ó¤â°ì½ï¤Ë¥²¡¼¥à¥·¡¼¥ó¤ËÀ¸À®¤µ¤ì¤¿¤¢¤È¤Ç¡¢CameraController ¥¯¥é¥¹¤ÎÊÑ¿ô¤Ë¥Ú¥ó¥®¥ó¤Î¾ðÊó¤òÀßÄꤷ¡¢
ÊÑ¿ô¤ÎÃͤòÂåÆþ¤·¤Æ¤¢¤²¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¡¡¸½ºß¥«¥á¥é¤¬¥Ú¥ó¥®¥ó¤òÄɽ¾¤·¤Ê¤¤¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ï¡¢¤³¤Î CameraController ¥¯¥é¥¹¤Î playerobj ÊÑ¿ô¤ËÃͤ¬¤Ê¤¤¤¿¤á¤Ç¤¹¡£
¡¡ÊÑ¿ô¤ÎÃͤò¼èÆÀ¤ÎÊýË¡¤ÏÍÍ¡¹¤Ç¤¹¤Î¤Ç¡¢¤¤¤Þ¤Þ¤Ç³Ø½¬¤·¤¿¤³¤È¤ò³è¤«¤·¤Æ¤É¤Î¤è¤¦¤Ë¤¹¤ì¤ÐÊÑ¿ô¤Ë¼èÆÀ¤Ç¤¤ë¤«¤ò¹Í¤¨¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡¡Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤·¤Æ¡¢À©¸æ¤ò¤ª¤³¤Ê¤¦¤¿¤á¤Î¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤Þ¤¹¡£
¤³¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¢¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È¡¢¥×¥ì¥Õ¥¡¥Ö¤Ë¤Ê¤Ã¤Æ¤¤¤ë Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎξÊý¤Ë¥¢¥¿¥Ã¥Á¤·¤Þ¤¹¡£
¤½¤ÎºÝ¡¢¥¢¥µ¥¤¥ó¾ðÊ󤬰ۤʤê¤Þ¤¹¤Î¤Ç¡¢¥×¥ì¥Õ¥¡¥Ö¤Î¥ª¡¼¥Ð¡¼¥é¥¤¥Éµ¡Ç½¤ÏÍøÍѤ·¤Ê¤¤¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
Stage.cs
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È¡¢¥×¥ì¥Õ¥¡¥Ö¤Ë¤Ê¤Ã¤Æ¤¤¤ë Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¤½¤ì¤¾¤ì¤Ë Stage ¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤·¡¢Î¾Êý¤ËÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¤½¤ì¤¾¤ì¡¢¼«Ê¬¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤ë penguin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£
¥¢¥µ¥¤¥ó¤·¤¿¥¢¥¤¥³¥ó¤Î¿§¤ËÃíÌܤ·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¥×¥ì¥Õ¥¡¥Ö¤Ë¤Ê¤Ã¤Æ¤¤¤ë Stage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü(¥×¥ì¥Õ¥¡¥ÖÊÔ½¸¥â¡¼¥É»þ)
¡¡¥¹¥Æ¡¼¥¸¤ÎÀ¸À®¸å¤Ë CameraController ¥¹¥¯¥ê¥×¥È¤Î PlayerObj ÊÑ¿ô¤Ë¥×¥ì¥¤¥ä¡¼¤Î¾ðÊó¤òÅÐÏ¿¤¹¤ë½èÍý¤ò¼ÂÁõ¤·¤Þ¤¹¡£
¤¹¤Ç¤ËɬÍפʥ᥽¥Ã¥É¤ÏÍÑ°Õ¤·¤Æ¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¥¹¥Æ¡¼¥¸À¸À®¸å¤Ë¸Æ¤Ó½Ð¤·Ì¿Îá¤ò¼Â¹Ô¤·¤Þ¤¹¡£
¡¡¤Þ¤º¤Ï¼«Ê¬¤Ç¤É¤Î¤è¤¦¤ÊÌ¿Îá¤ò½ñ¤±¤Ð¤¤¤¤¤Î¤«¤òÄ©À路¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
TODO ¤âÍÑ°Õ¤·¤Æ¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤Á¤é¤â³èÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
ARGameManager.cs
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë AR Session Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¢¤¢¤ë¤¤¤Ï XR Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤è¤ê CameraController ¥¹¥¯¥ê¥×¥È¤ÎÀßÄê¤òÊѹ¹¤·¤Þ¤¹¡£
¡¡PlayerObj ÊÑ¿ô¤Ë Pengiun ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¾ðÊ󤬥¢¥µ¥¤¥ó¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤³¤Î¾ðÊó¤òºï½ü¤·¤Æ None ¤Î¾õÂ֤ˤ·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤ì¤Ï¡¢AR Æâ¤Ç¥¹¥Æ¡¼¥¸¤òÀ¸À®¸å¡¢¥¹¥Æ¡¼¥¸¤Ë¤¢¤ë¥Ú¥ó¥®¥ó¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¹¥¯¥ê¥×¥È¤òÍøÍѤ·¤ÆưŪ¤Ë¼èÆÀ¤¹¤ë¤è¤¦¤ËÊѹ¹¤·¤¿¤¿¤á¤Ç¤¹¡£
¡¡¤½¤Î¤¿¤á¡¢¸½ºß PlayerObj ÊÑ¿ô¤Ï None ¤Ç¤¹¤¬¡¢¥¹¥Æ¡¼¥¸¤¬À¸À®¤µ¤ì¤¿¥¿¥¤¥ß¥ó¥°¤Ç PlayerObj ÊÑ¿ô¤Ë¥Ú¥ó¥®¥ó¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¾ðÊó¤¬ÂåÆþ¤µ¤ì¤Þ¤¹¡£
¡¡º£²ó¤Î¥¹¥¯¥ê¥×¥È¤Î½¤Àµ²Õ½ê¤Î¼ê½ç¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢ARGameManager ¤È CameraController ¤ÎξÊý¤Î¥¹¥¯¥ê¥×¥È¤Î½èÍý¤ò¸«Ä¾¤·¤Æ½èÍý¤Îή¤ì¤òÇÄ°®¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
AR Session Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
XR Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡°Ê¾å¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£
¡¡Ê¿Ì̤ò¥¿¥Ã¥×¤·¤Æ¥¹¥Æ¡¼¥¸¤òÀ¸À®¤·¤Þ¤¹¡£¥¨¥Ç¥£¥¿¡¼¤Î¤è¤¦¤ËAR Camera ¤¬¥×¥ì¥¤¥ä¡¼¤òÄɽ¾¤¹¤ì¤ÐÀ©¸æÀ®¸ù¤Ç¤¹¡£
¡¡ÌäÂ꤬¤Ê¤±¤ì¤Ð¡¢Â³¤¤¤Æ¡¢AR Camera ¤Ë¤â¾ã³²Êª¤ËÀÜ¿¨¤·¤¿ºÝ¤ËÁú¤Î¥¨¥Õ¥§¥¯¥È¤òȯÀ¸¤µ¤»¤ë¤è¤¦¤Ëµ¡Ç½¤òÄɲä·¤Þ¤¹¡£
¡¡MainCamera ¤ÈƱ¤¸¤è¤¦¤Ë¡¢AR Camera ¤Ë¤âÁú¤Î¥¨¥Õ¥§¥¯¥È¤¬È¯À¸¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¤É¤¦¤¹¤ì¤Ð¤¦¤Þ¤¯À©¸æ¤Ç¤¤ë¤«¤ò¹Í¤¨¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤Ê¤ª¡¢XR Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÍøÍѤ·¤Æ¤¤¤ë¾ì¹ç¡¢AR Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤Ï¤Ê¤¯¡¢
XR Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤ë MainCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀßÄꤷ¤Þ¤¹¡£
£²¡¥Áú¤Î¥¨¥Õ¥§¥¯¥È¤òȯÀ¸¤µ¤»¤ë¤¿¤á¡¢AR Camera(XR Origin Æâ¤Î MainCamera) ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤ò¹Ô¤¦
¡¡AR Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤«¤éÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡ºÇ½é¤Ë Tag ¤ò MainCamera ¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡Â³¤¤¤Æ¡¢Main Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¤Î¤ÈƱ¤¸¤è¤¦¤Ë¡¢
Frost ¥¹¥¯¥ê¥×¥È¤È FrostEffectController ¥¹¥¯¥ê¥×¥È¤ò½çÈ֤˥¢¥¿¥Ã¥Á¤·¤Þ¤¹¡£
¡¡Frost ¥¹¥¯¥ê¥×¥È¤ÎÀßÄêÃͤϡ¢MainCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î Frost ¥¹¥¯¥ê¥×¥È¤ÎÃͤÈƱ¤¸¤Ë¤·¤Æ¤ª¤¤Þ¤¹¡£
AR Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡XR Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¾ì¹ç¤â¡¢ÂоݤȤʤ륲¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ XR Origin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È Æâ¤Î Main Camera ¤È¤Ê¤ë¤À¤±¤Ç
Tag ¤ÎÀßÄê¤ä¡¢¥¢¥¿¥Ã¥Á¤¹¤ë¥¹¥¯¥ê¥×¥È¤Ê¤É¤Ï AR Camera ¤ÈƱ¤¸¤Ç¤¹¡£
Main Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡°Ê¾å¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£
¡¡¥¹¥Æ¡¼¥¸¤òÀ¸À®¤·¤Æ¡¢¾ã³²Êª¤ËÀÜ¿¨¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
AR Camera ¤Ë¤âÁú¤Î¥¨¥Õ¥§¥¯¥È¤¬È¯À¸¤¹¤ì¤ÐÀ©¸æÀ®¸ù¤Ç¤¹¡£
¡¡¥Ý¥¤¥ó¥È¤Ï¡¢²¿¸Î¡¢¤¤¤Þ¤Þ¤Ç¤ÈƱ¤¸½èÍý¤¬¡¢AR Camera ¤ËFrost ¥¹¥¯¥ê¥×¥È¤Ê¤É¤ò¥¢¥¿¥Ã¥Á¤·¤ÆÀßÄꤷ¤¿¤À¤±¤Ç¼ÂÁõ¤¹¤ë¤³¤È¤¬¤Ç¤¤¿¤«¡¢¤Ç¤¹¡£
¤³¤ÎÍýͳ¤ò¤·¤Ã¤«¤ê¤ÈÍý²ò¤¹¤ë¤¿¤á¤Ë¤â¡¢FrostEffectController ¥¹¥¯¥ê¥×¥È¤ò¸«Ä¾¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡¡Tag ¤ÎÀßÄê¤â¥Ý¥¤¥ó¥È¤Ç¤¹¡£
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡=>¡¡¼¡¤Ï¡¡³Ø½¬¤Î¿¶¤êÊ֤ꡡ¤Ç¤¹¡£
¡¡¤¿¤À¤·¡¢¥«¥á¥é¤ÎÄɽ¾°ÌÃÖ¤¬¤è¤¤°ÌÃ֤ˤʤé¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢²¼µ¤Î¼ê½ç¤Ø¿Ê¤ó¤Ç¡¢¥«¥á¥é¤ÎÄ´À°¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£
¡¡È¯Å¸£±£±¡¡¥«¥á¥é¤Î°ÌÃÖÄ´À°
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯