ããã¯ã
Unity3d 4.6ã§ã®ãã°ä¿®æ£ãå«ã翻蚳æžã¿ãããžã§ã¯ãã¬ã€ããŸãã¯ä»£æ¿ãããžã§ã¯ã
ãªã³ã¯ã§ãã
PSå
ã®ããã¥ã¢ã«ã¯ãAssetsãã©ã«ããŒã«3ã€ã®PDFãã¡ã€ã«ã®åœ¢åŒã§ãããžã§ã¯ãèªäœã«ãããŸãããã®ã¢ãŒã«ã€ãã¯UnityPackedã«çœ®ãæããããŸããã ãã®ãããžã§ã¯ãã§ã¯ã
Assets \ Scripts \ CSharpScriptsãã©ã«ããŒã«ããCïŒã§æžãæããããã¹ã¯ãªãããå«ãã¢ãŒã«ã€ãã
æ¢ã«ã¢ããããŒããããŠããŸãã ã€ã³ã¹ããŒã«é åºïŒ
1ïŒUnity3dãå®è¡ãã空ã®ãããžã§ã¯ããäœæããŸãã
2ïŒãããžã§ã¯ããã€ã³ããŒãããŸã>
ïŒAssets / Import Package / Custom PackageïŒ ã
3ïŒãã¹ãŠã®ãªãœãŒã¹ã®ã€ã³ããŒããåŸ
ã£ãŠããããããžã§ã¯ããã€ã³ããŒããããŸããã
4ïŒæ³šæ!!! ãã¹ãŠã®CïŒã¹ã¯ãªããã䜿çšããå Žåã¯ããŸããããžã§ã¯ãããJSã¹ã¯ãªãããåé€ããå¿
èŠããããŸãã
ãã¬ãããCïŒã¹ã¯ãªããã®ã¢ãŒã«ã€ãã解åãããããã®ã¹ã¯ãªããã䜿çšããŸãã
Unity3dã®å
¬åŒããã³éå
¬åŒãããªãã¥ãŒããªã¢ã«ããã·ã¢èªã«ç¿»èš³ããŠããã
Zionn Game RoomããŒã ã«æè¬ããŸãã ããã§ã¯ãã¬ã€ãã®åŠç¿ãå§ããŸãããã
ããŒã2ããŒã3ã¯ããã«
ãã®ã¬ã€ãã®ç®çã¯ã
Unity3dã§ã¬ãŒã¹ã²ãŒã ãäœæããæ¹æ³ã瀺ãããšã§ãã 3Dã¢ãã«ãã¹ã¯ãªãããããã³ã³ã³ããŒãã³ãããè»ãäœæããŸãã æ¢è£œã®ã·ãŒã³ããã¬ã€ããŠåŠç¿ã§ããæ¬æ Œçãªã¬ãŒã·ã³ã°ã·ãã¥ã¬ãŒã¿ãŒãããžã§ã¯ããæäŸããŸãã ãŸãããã®ã¬ã€ãã䜿çšããŠç·Žç¿ã§ããè»ãé€ããŠãã²ãŒã ã®æºåãæŽã£ãã·ãŒã³ãæäŸããŸãã
äœãåŠã³ãŸããïŒ
ãã®ã¬ã€ãã®ç®çããå§ããŸãããã äºãã«ç¬ç«ãã3ã€ã®éšåã«åãããŠããŸãã
1.è»ã®çµã¿ç«ãŠ3Dã¢ãã«ãã¹ã¯ãªãããããã³ã³ã³ããŒãã³ããã
è»ã®ãã¬ããïŒè»ã®ãã¬ããïŒãçµã¿ç«ãŠãæ¹æ³ã ããã¯çŸåšã®ã»ã¯ã·ã§ã³ã§ãã
2.è»ã®åŸ®èª¿æŽè»ãé©åã«æ§æããæ¹æ³ã
3.ãã³ãããã®äžè»ãé転ãããœãŒã¹ã³ãŒãã®è©³çŽ°ã
åææ¡ä»¶
ãã®ã¬ã€ãã¯ã
Unity3dãã¥ãŒããªã¢ã«ãšããŠã®åå¿è
åãã§ã¯ãããŸããã
Unity3dãã©ã®ããã«
æ§æãããŠããããåºæ¬çã«ç解ãã
GameObject ãã³ã³ããŒãã³ããã¹ã¯ãªãããªã©ãäœã§ããããç解ããå¿
èŠããããŸã
ã äžç·ã«å€ãã®è³æãåæããŸããåºæ¬çã«åæãããã®ãããã°ã詳现ãªãã®ããããŸãã
ç§ãã¡ã¯å匷ããŸããïŒ
â¢ãã®ä»ã®ã¹ã¯ãªããã
â¢Unity3dã®åºæ¬ã
Unity3dã¹ã¯ãªãããšã³ã³ããŒãã³ããã©ã®ããã«
æ©èœãããã®åºæ¬ã«ã€ããŠã¯è©³ãã説æããŸããã ãããè¡ãã«ã¯ãã¢ãã¬ã¹ã«ä»ã®å€ãã®ãªãœãŒã¹ããããŸãã
åç
§çªå·1åç
§çªå·2Unity3dãŠãŒã¶ãŒã¬ã€ããšã¹ã¯ãªãã
ã¯ããã®ã¬ã€ããåŠç¿ããéã®è²Žéãªä»²éã§ãã 詳现ãç¥ãããçµã¿èŸŒã¿ã³ã³ããŒãã³ããæ©èœã«åºäŒã£ããããããã®ãªãœãŒã¹ã«ã¢ã¯ã»ã¹ããããšããå§ãããŸãã
åŠç¿ã¢ãããŒãã¯ãç¿ãèŠãŠãããç¿ãç¹°ãè¿ããã«äŒŒãŠããŸããè»ã®äœæãšãã®å€æ°ã®å€æŽã«ã€ããŠã®æ瀺ã«åŸããŸãã
ãããã©ã®ããã«äžç·ã«æ©èœããããç解ããããªãèªèº«ããããç解ãå§ããããšãé¡ã£ãŠããŸãã æ°è»œã«å匷ããŠãã ããã
æåŸã®æãé·ãéšåã§ã¯ãèªåè»ãé転ãããœãŒã¹ã³ãŒãã®è©³çŽ°ãæãäžããŸãã
ããã¯ç·åœ¢ã®ãŠã©ãŒã¯ã¹ã«ãŒã§ã¯ãããŸããããçºçããŠããããšã®ã»ãšãã©ãã«ããŒããŸãã
ãã¹ãŠã®ããã¥ã¢ã«ãèªãã åŸãããªãã¯å€ããåŠã¶ããšã«ãªããšç¢ºä¿¡ããŠããŸãã
ããŒã1ïŒè»ã®çµã¿ç«ãŠ
Unity3d 4.6ã®ãšã©ãŒãä¿®æ£ ãããããžã§ã¯ããã©ã«ããŒãŸãã¯
ãããžã§ã¯ããžã®ä»£æ¿
ãªã³ã¯ãå«ã
ã¢ãŒã«ã€ããããŠã³ããŒãããŸã ã ã
CompleteScene ããšããã·ãŒã³ãéãããšããå§ããŸãã ãã®ã·ãŒã³ã«ã¯ãã¥ãŒãã³ã°ãããè»ããããŸãã
åçãã¿ã³
ïŒåçïŒãæŒããŠ
åçããŠã¿ãŠãã ããã ããã«ãããããããè¡ãããšã®æçµçµæã衚瀺ãããŸãã
åçãçµäºãããã
ãTheTrackããšããã·ãŒã³ãéããŸãã ãã®ã·ãŒã³ã«ã¯ãã¬ãŒã·ã³ã°ã·ãã¥ã¬ãŒã¿ãŒã«å¿
èŠãªãã¹ãŠã®ãã®ãå«ãŸããŠããŸãããæãéèŠãªéšåã¯è»ã§ãã
次ã«ãè»ã®ã¢ãã«ãã·ãŒã³ã«ãã©ãã°ããŸãã
ãããžã§ã¯ããã¥ãŒã§ã¯ã
Models / Car / catamountã«ãããŸãã
è»ãã©ãã«ãã©ãã°ãããã«å¿ããŠããããããã®äœçœ®ãããé©åãªäœçœ®ã«å€æŽããå¿
èŠããããŸãã
ã€ã³ã¹ãã¯ã¿ãŒã§è»ã®äœçœ®ãïŒ860ã102.3ã878ïŒã«å€æŽãã
Yå転ïŒå転ïŒã130ã«èšå®ãããšæããŸã
ããã¥ãŒããªã¢ã«ã®æ®ãã®éšåã§ã¯ããã®ã²ãŒã ãªããžã§ã¯ãã¯ãè»ããšåŒã°ãããããããã§ååãå€æŽã§ããŸãã
ããã¯åãªã3Dè»ã¢ãã«ã§ãã ã€ã³ã¹ãã¯ã¿ãŒãèŠããšãè»ã®ãããã£ããè»ã®çªãè»èŒªãªã©ãå€ãã®åãªããžã§ã¯ããå«ãŸããŠããããšãããããŸãã ãŸããè»ã®
ã³ã©ã€ããŒã«äœ¿çšãã2ã€ã®åçŽãªã°ãªãããå«ãŸããŠããŸãã å¿é
ããªãã§ãã ããããããã¯çŸåšè¡šç€ºãããŠããŸããããããå€æŽããŸãã è»ãã©ã®ããã«æ§ç¯ããã
éå±€å
ã§ã©ã®ããã«çžäºã«é¢é£ããŠããããç 究ããæéãè²»ãããŠãã ãã
ãããã€ãã®çç±ãããèªåè»çšã«ç¬èªã®ã¬ã€ã€ãŒãäœæããŸããã ã²ãŒã ãªããžã§ã¯ã
ãCarããèŠã€ããã€ã³ã¹ãã¯ã¿ãŒã«ç§»åããŠãããããããŠã³ã¡ãã¥ãŒã®ã¬ã€ã€ãŒã§
ãCarããéžæããŸãã ã³ã³ããã¹ãã¡ãã¥ãŒã§ã[
ã¯ããåãªããžã§ã¯ããå€æŽïŒã¯ããåãå€æŽ ïŒ]ãã¯ãªãã¯ããŠé©çšããŸããå€æŽã¯è»ã®éå±€å
ã®ãã¹ãŠã®ãªããžã§ã¯ãã«é©çšãããŸãã
Carã²ãŒã ãªããžã§ã¯ãã«ã¯ãããã©ã«ãã§ã€ã³ã¹ããŒã«ãããã¢ãã¡ãŒã·ã§ã³ã³ã³ããŒãã³ãããããŸãã ããã¯äœ¿çšãããã®ã§ã¯ãªãã®ã§ãå
ã«é²ã¿ã
Animation Componentã®å³åŽã«ããå°ããªãã€ãŒã«ãã¯ãªãã¯ããŠ
ãRemove Componentããéžæããå°ãã¯ãªãŒã³ã¢ããããŸãããã
è¡çªãè¿œå ãã
次ã«ãã·ãŒã³ãã¢ã¯ãã£ããªãšãã«ã¹ããŒãžããèœã¡ãªãããã«ãè»ã®
è¡çªã³ã³ããŒãã³ããèšå®ããŸãã è»ã®å®éã®ã°ãªããã«åºã¥ããŠè€éãªã°ãªããã
ã³ã©ã€ããŒãšããŠäœ¿çšãã代ããã«ãè»ã®äžéšãšäžéšã«å¯Ÿå¿ããã¯ããã«åçŽãª2ã€ã®ã°ãªãããäœæããŸããã ããã©ãŒãã³ã¹ãæ¹åããããã«ããããã®ã°ãªãããè¡çªã¢ãã«ãšããŠäœ¿çšããŸãã
â¢
ãè»ããªããžã§ã¯ãã®åãšããŠé
眮ãããŠãã
Collider_Bottomã²ãŒã ãªããžã§ã¯ããã¯ãªãã¯ããŸãã
â¢
ã³ã³ããŒãã³ã/ç©çã¡ãã¥ãŒã«ç§»åããã²ãŒã ã®ãªããžã§ã¯ãã«è¿œå ãã
MeshColliderãã¯ãªãã¯ããŸãã
â¢æ°ããè¿œå ããã
MeshColliderã³ã³ããŒãã³ãã®ããããããŠã³ã»ã¬ã¯ã¿ãŒã§[
ãããªã¢ã«]ãã¯ãªãã¯ãã
ç©çãããªã¢ã«ãéžæããŸãã
â¢2ã€ã®æ£æ¹åœ¢ã«ãã§ãã¯ããŒã¯ãããããšã確èªããŸãïŒãã§ãã¯ããã¯ã¹ïŒ
'Smooth Sphere Collisions'ããã³
'Convex'â¢ã³ã©ã€ããŒã¯è¡šç€ºãããªããããã²ãŒã ãªããžã§ã¯ããã
MeshRendererããã³
MeshFilterã³ã³ããŒãã³ããåé€ããŸãïŒã³ã³ããŒãã³ãã®å³åŽã«ããå°ããªæ¯è»ãã¯ãªãã¯ãã[
ã³ã³ããŒãã³ãã®åé€]ãéžæããŸãã
â¢
Collider_Topã²ãŒã ãªããžã§ã¯ãã«ã€ããŠäžèšãšåãããšãè¡ããŸãã
ç¹å®ã®è»ã®ã¢ãã«ã®ã·ã£ããŠèšå®
次ã®2ã€ã®çç±ã«ãããè»ã¢ãã«ã®ã·ã£ããŠèšå®ãå€æŽããŸãã ãŸããå®éã«ãããå¿
èŠãšããªããªããžã§ã¯ãã®ã·ã£ããŠãç¡å¹ã«ããããšã¯ãããã©ãŒãã³ã¹ãåäžãããããã®éåžžã«è¯ãæ¹æ³ã§ãã 第äºã«ã圱ã調æŽãããšè»ãè¯ãèŠãããšä¿¡ããŠããŸãã ã¹ããŒãžäžãé«éã§ç§»åããŠãããšãã«è»ã«åœ±ãçŸãããæ¶ããããããšãç®ã楜ããŸããŠããããããããŸããã ããçŸå®çãªã·ã£ããŠã®åäœãå¿
èŠãªå Žåãããã¯å®å
šã«å¯èœã§ãã åžæã«å¿ããŠèšå®ãå€æŽããã ãã§ãã
è»ã®ããŸããŸãªéšåã«äœ¿çšããèšå®ã¯æ¬¡ã®ãšããã§ãã
æ¡ä»¶ïŒ
æå¹ -æå¹
ç¡å¹ -ç¡å¹
圱ãèœãšã-圱ãèœãšã
圱ãåãåã - 圱ãåãåã£ã
è»äœ -è»äœ
ããã£ã€ã³ããªã¢ -ãã£ãã³ããã£
è»ã®çª-è»ã®çª
DiscBrakes-ãã£ã¹ã¯ãã¬ãŒã
ãã€ãŒã« -ãã€ãŒã«ã
æ¬äœïŒåœ±ãèœãšãããšãå¯èœã§ãã ã·ã£ããŠãåä¿¡ç¡å¹
Body InteriorïŒCast Shadowsãæå¹ã«ãªããŸããã ã·ã£ããŠãåä¿¡ç¡å¹
è»ã®çªïŒåœ±ã®ãã£ã¹ããšåä¿¡ãç¡å¹ã«ãªã£ãŠããŸã
DiscBrakesïŒåœ±ã®ãã£ã¹ããšåä¿¡ãç¡å¹ã«ãªã£ãŠããŸã
ãã€ãŒã«ïŒåœ±ã®æ圱ãæå¹ã«ãªããŸããã 圱ãç¡å¹ã«ããŸãã
èªåè»éšåã®è¿œå
ããã§ã¯ãè»ïŒ
ãè»ãã²ãŒã ãªããžã§ã¯ãïŒã®é©åãªæäœã«å¿
èŠãªã³ã³ããŒãã³ãã®è¿œå ãå§ããŸãããã
ãŸããç©çã·ãã¥ã¬ãŒã·ã§ã³ã䜿çšããŠäžçã®è»ã®äœçœ®ãå¶åŸ¡ããæ¹æ³ãå¿
èŠã§ããããã«
ã¯çµã¿èŸŒã¿ã®Rigidbodyã³ã³ããŒãã³ã
ãçæ³çã§ãã
ãè»ãã²ãŒã ãªããžã§ã¯ããéžæãã[
ã³ã³ããŒãã³ã ]ã¡ãã¥ãŒã«ç§»åããŠã[
ç©ç ]
/ [
RigidBody ]ãéžæããŸãã
ãã¬ããæ¥ç¶ã倱ãããããšãéç¥ãã
Unity3dã¡ãã»ãŒãžã確èªããã²ãŒã ãªããžã§ã¯ãã®ã³ã³ããŒãã³ãã®1ã€ãšããŠ
Rigidbodyã³ã³ããŒãã³ããã©ã®ããã«æ¥ç¶ããããã確èªããŸãã
â¢è»ã®ééã¯æããã«1ããã°ã©ã ãè¶
ããŠããããã
ãªãžããããã£ã®
質éã
1500kgãªã©ã®ããçŸå®çãªãã®ã«å€æŽããããšããå§ããŸãããã
â¢æ¬¡ã«ã
angularDragããããã£ãå€æŽãã
æ©èœããããŸãããããã¯ã
Rigidbodyã®é床ãšå転ãé
ãããåã§ãã ã¹ã¯ãªããã䜿çšããŠè»ã®ãã©ãã°ãå¶åŸ¡ããããã
angleDragããããã£
ã0ã«èšå®
ããŸã ã
â¢
ãscripts / JavaScriptsããã©ã«ããŒã§
Car.jsã¹ã¯ãªãããèŠã€ããŠã
ãCarãã²ãŒã ãªããžã§ã¯ãã«ãã©ãã°ããŸãã ãã®ã¹ã¯ãªããã¯èªåè»ã®
ããšã³ãžã³ãã§ã ããã®ããã¥ã¢ã«ã®æåŸã§ãã¹ã¯ãªããã®è©³çŽ°ã説æããããšã«çŠç¹ãåœãŠãŸãã
ã³ã³ããŒãã³ãã¹ã¯ãªãã
ãCar.jsãã«ã¯ãèªåè»ã®ã»ããã¢ãããéå§ãããšãã«èª¬æããããŸããŸãªå€æ°ããããŸããã³ãŒããåŠç¿ãããšãã«ã詳现ã説æããŸãã ããã§ããã©ãã¯ã§è»ãé転ã§ããããã«ããããã«å¿
èŠãªãã®ãèšå®ãããã ãã§ãã
ãŸãã
è»ã®ã¹ã¯ãªããã¯è»ã®è»èŒªã«ã€ããŠç¥ã£ãŠããå¿
èŠããããŸãã ã€ã³ã¹ãã¯ã¿ãŒã§ã¯ã
å茪ïŒFront WheelsïŒãš
åŸèŒªïŒRear WheelsïŒã衚瀺ãããŸããååã®å·Šã«ããå°ããªç¢å°ãã¯ãªãã¯ãããšãäž¡æ¹ãå±éã§ããããšã«æ³šæããŠãã ããã
â¢å茪ãšåŸèŒªã®
ãµã€ãºã2ã«èšå®ã ã2ã€ã®å茪ãš2ã€ã®åŸèŒªã®ããã®ã¹ããŒã¹ãæ®ããŸãã
â¢
ã€ã³ã¹ãã¯ã¿ãŒã§WheelFLãWheelFRãWheelRLãWheelRRãå±éããŸãã ããããã«ãã¬ãŒããã£ã¹ã¯
ïŒDiscBrakeïŒãåäŸã§ãããåãã¬ãŒããã£ã¹ã¯
ïŒDiscBrakeïŒã«åäŸãããããšã
ããããŸãã
â¢
DiscBrakeFLãšDiscBrakeFRããã¹ã¯ãªãã
"Car"ã® ïŒ
å茪ïŒå茪㮠2ã€ã®ç©ºãã¹ãããã«ãã©ãã°
ã¢ã³ãããããããDiscBrakeRLãšDiscBrakeRRã
ïŒåŸèŒªïŒåŸèŒªã®ã¹ãããã«ãã©ãã°
ã¢ã³ãããããããŸãã
â¢è³ªåãããããããŸãã-ãªããã£ã¹ã¯ãã¬ãŒãããã€ãŒã«ã«ãããã®ã§ããïŒ ãããŠã説æã¯ç°¡åã§ãã芪ã²ãŒã ãªããžã§ã¯ããšããŠã®ãã£ã¹ã¯ãã¬ãŒããªã®ã§ããã€ãŒã«ãšããŠãã£ã¹ã¯ãã€ã³ã¹ããŒã«ãããšã¿ã€ã€ãå«ãŸããŸãã
ãããã·ã£ããŠã®è¿œå
æåæ§ã©ã€ãã¯ããããžã§ã¯ãã§åœ±ãèš±å¯ãããŠããå Žåãè»ã®éè·¯äžã«è¯å¥œãª
ãããã·ã£ããŠãäœæããŸãã ãŸãããã®ç»åã«ç€ºãããã«ãè»ã®äžã«åœ±ãè¿œå ããŸãã
ãããè¡ãã«ã¯ãè»ã®çäžã®éè·¯ã«è»ã®åœ¢ã«äŒŒã
ãããã·ã£ããŠãæ圱ãããããžã§ã¯ã¿ãŒã䜿çšããŸãã ãããžã§ã¯ã¿ã¯ãå®éã®ãããžã§ã¯ã¿ã®ããã«æ©èœããã³ã³ããŒãã³ãã«çµã¿èŸŒãŸããŠããŸãã 転éãããã¯ã¹ãã£ãæå®ãããããžã§ã¯ã¿ãŒã®èšå®ãšïŒã¿ãŒã²ãããŸã§ã®è·é¢ïŒã«åºã¥ããŠã圱ã¯ãããžã§ã¯ã¿ãŒã®å
ã®çµè·¯ã«ãããªããžã§ã¯ãã®ãã¯ã¹ãã£ã«åºã¥ããŸãã
â¢éå±€ã§ã空ã®ã²ãŒã ãªããžã§ã¯ããäœæããããã
ãè»ãã®è»ã«ãã©ãã°ããŠã
ãè»ãã®ã²ãŒã ãªããžã§ã¯ãã®åã«ããŸãã
â¢
Blobã·ã£ããŠãããžã§ã¯ã¿ãŒã«ååã
ä»ããâ¢ãããžã§ã¯ã¿ãŒã³ã³ããŒãã³ã
ïŒãããžã§ã¯ã¿ãŒïŒããã®ãããžã§ã¯ã¿ãŒã®
Blobã·ã£ããŠã«è¿œå ããŸã
ïŒã³ã³ããŒãã³ã->ã¬ã³ãã©ãŒ->ãããžã§ã¯ã¿ãŒïŒâ¢ãããžã§ã¯ã¿ã
ãã¢ã¯ãªãããã¬ãŒã³= 0.1ããã¡ãŒã¯ãªãããã¬ãŒã³= 50ãèŠé= 30ã«èšå®ããŸããâ¢
Blob_shadowãããªã¢ã«ããããªã¢ã«ã¹ãããã«å²ãåœãŠãŸãã
â¢[
ã¬ã€ã€ãŒãç¡èŠ]㧠[
ãã¹ãŠ]ãéžæã
ã [
éè·¯]ã¬ã€ã€ãŒã®ãã§ãã¯ãå€ããŸãããã®çµæããããžã§ã¯ã¿ãŒã¯éè·¯ã«
ãããã·ã£ããŠãæ圱ããŸãã
â¢
BlobShadowController.jsã¹ã¯ãªãããè¿œå ããŸãïŒãããžã§ã¯ããŠã£ã³ããŠã®
Scripts / CSharpScriptsãã©ã«ããŒå
ïŒ
ãããžã§ã¯ã¿ãŒã®ã³ã³ããŒãã³ãïŒ
Projector ïŒã®äœçœ®ãšå転ã¯ãéåžžã«åçŽãª
BlobShadowController.jsã¹ã¯ãªããã®ãã¬ãŒã ããšã«æŽæ°ãããŸãã ã€ãŸããè»ã®10ã¡ãŒãã«äžã«ãããè»ã®å転ã«åºã¥ããŠå転座æšãååŸããŸãã éè·¯äžã®è»ã®
ãããã·ã£ããŠãå¥ã®ãã®ã«èŠãããå Žåã¯ãã¹ã¯ãªãããèŠãŠå€ãå€æŽããŠã¿ãŠãã ããã
ã¿ã€ã€ããŒã¯
è»ã®é転ããã»ã¹ãããã«æ¥œãããããã®ã®ããã€ãã¯ãè»ããã©ãã¯ã®è§ã§æ»ãããããé«éã§Uã¿ãŒã³ããããšã§ãã è»èŒªãéè·¯äžãæ»ãå¹æãé«ããããã«ãè»ãæ»ããšãã«è¡šé¢ã«ã¿ã€ã€è·¡ãè¿œå ããŸãã
ãã®ãããã·ãŒã³å
ã®ãã¹ãŠã®ã¿ã€ã€ãã©ãã¯ãå¶åŸ¡ããæ¢åã®ã¹ã¯ãªãããè¿œå ããå Žåãã¿ã€ã€ãã©ãã¯ã確ç«ããŸãã ãã®ã³ã³ãããŒã©ãŒã¯ãã¿ã€ã€ãã©ãã¯ãè¡šãã°ãªãããäœæããŸãã åãã€ãŒã«ã¯ããã®äœçœ®ãšãã¹ãªãããããã©ãããç¥ã£ãŠããŸãã ãã®æ
å ±ã䜿çšããŠã
ã¹ãããããŒã¯ã³ã³ãããŒã©ãŒã«é¢é£ããŠ
ã¹ããã ããŒã¯ãèšå®
ããäžçã®ãã€ã³ããç»é²ããŸãã è€æ°ã®ãã€ãŒã«ããã®ã¿ã€ã€ãã©ãã¯ãæ··åãããªãããã«ãåãã€ãŒã«ãåã®
ã¹ãããããŒã¯ãã€ã³ãããã©ããã³ã°ã§ããããã«ããŸãã
ãã¬ãããäœæããŸããããã®ãããã¹ããŒãžã«ãã©ãã°ããã ãã§ãã
â¢
Skidmarksãã¬ããã
Prefabs-> VFX-> Skidmarksããã·ãŒã³ã«ãã©ãã°ã¢ã³ãããããããŸãã
äœæããåé ç¹ã®è²ã調æŽããŠãã¿ã€ã€ãã©ãã¯ã®åŒ·åºŠãèšå®ããŸãã 匷床ã¯ãã¹ãããã®åŒ·ãã«ãã£ãŠæ±ºãŸããŸãã ãã®å¹æãäœæããããã«ããã¬ãŒããã¬ãŒã¹ãã¬ã³ããªã³ã°ãããšãã«åé ç¹ã®ã¢ã«ãã¡ã䜿çšããã«ã¹ã¿ãã€ãºãããã·ã§ãŒããŒã䜿çšããŸãã è»ã®ããã«ãããªããæ§ç¯ããããšããŠããè»ã«ã¿ã€ã€ãã©ãã¯ãããè¯ããã£ãããããããã«å€æŽã§ããããšãããã€ããããŸãã
æ倧ã¿ã€ã€ããŒã¯
Max Markså€æ°ã¯ããã€ã§ãã·ãŒã³ã«ååšã§ããã¿ã€ã€ãã©ãã¯ã®äœçœ®ã®æ°ã決å®ããŸãã ãã¹ãŠã®è»èŒªã¯åãã¿ã€ã€ãã©ãã¯ã䜿çšããããããã®æ°å€ã¯ãã¹ãŠã®è»èŒªã§èšç®ãããŸãã ã¿ã€ã€ãã©ãã¯ãæ倧æ°ã«éãããšãæåã®äœçœ®ãäžæžããããŸãã ãã®æ°ãå¢ãããšãã·ãŒã³å
ã®ã¿ã€ã€ãã©ãã¯ã®ãã¹ãŠã®éšåã®å
šé·ãé·ããªããŸãã
ã¿ã€ã€å¹
å€æ°ïŒ
Mark Width ïŒã¯ãã¿ã€ã€ãã©ãã¯ã®å¹
ã決å®ããŸãã äœæãããè»äž¡ã®è»èŒªã«åãããã«èª¿æŽããå¿
èŠããããŸãã ããã倧åãã©ãã¯ã®å Žåãå¿
èŠãªéåžžã«å¹
ã®åºã
ã¹ãããããŒã¯ãäœæããããšããŸããã¹ããŒãã¬ã³ãŒããèšå®ããããã«æ¥µèã¿ã€ã€ã䜿çšãããè¶
é³éè»ãã®å Žåãéåžžã«èã
ã¹ãããããŒã¯ãããçŸå®çã«èŠããŸãã
å°äžå€äœ
ã¿ã€ã€ãã©ãã¯ã°ãªãããäœæããããšãè»èŒªããèšç®ããããããã䜿çšããŠäœæãããéè·¯äžã«
ã¹ãããããŒã¯ãé
眮ãããŸãã ãããã®ãã€ã³ãã¯ãã»ãšãã©ã®å Žåããã€ãŒã«ã¹ãªããäžã«è¡šé¢äžã§çŽç·ã«ãªããŸãã 2ã€ã®ã°ãªãããããäžã«ãããšãã²ãŒã å
ã§ã¡ãã€ããçºçããå¯èœæ§ããããŸãã
ãããé²ãããã«ã
Ground Offsetå€æ°ãå°å
¥ãããŠããŸãã ã¡ãã·ã¥ãäœæããããªãã»ããã®å
šé·ããµãŒãã§ã¹ã«åçŽãªæ¹åã«äžãããŸãã ãã®ãããã¡ãã€ãããã£ãããã¿ã€ã€ã®è·¡ãè¡šé¢ãšäº€å·®ããå Žåã¯ããªãã»ãããå¢ãããŠã¿ãŠãã ããã ã¿ã€ã€ãã©ãã¯ãå°çã®è¡šé¢ã«æ®ãããã«ãããããã·ã§ãŒããŒãã¿ã€ã€ãã©ãã¯ã«äœ¿çšããããªãã»ãããäœæãããå¥ã®
ã¬ã³ããªã³ã°ã©ã€ã³ã«å²ãåœãŠãã
ãŸãïŒã¬ã³ããªã³ã°ïŒ ã
æå°è·é¢
SkidmarkControllerã«æ°ãããã€ã³ããè¿œå ãããšãã¯ãæåŸã®
ã¹ãããããŒã¯ïŒã¿ã€ã€ãã©ãã¯ïŒããã®
æå°è·é¢ïŒæå°è·é¢ïŒã§ãªããã°ãªããŸããã ããã«ãããéåžžã«å°ããªé åã«
ã¿ã€ã€ããŒã¯ãçç£çã«è¿œå ã§ããŸãã ãã®å€ã倧ããããããªãã§ãã ããããã ããããã«ããã¿ã€ã€ããŒã¯ã倧ãããªããããå¯èœæ§ããããŸããããã«ãè·é¢ã®å¢å ã¯è»èŒªã®åŸãã«ããããã«èŠããå ŽåããããŸãã
ã¿ã€ã€ããŒã¯ãè»èŒªã®åŸãã«è¡šç€ºãããŸãã å€ãå°ãããããš
ãã¿ã€ã€ãã©ãã¯ãããçšåºŠæ»ããã«ãªã
ãã¿ã€ã€ãã©ãã¯ããã€ãŒã«ã«ãè¿ãããšããé¯èŠãçããŸãã
ãã¯ã¹ãã£ãŒ
ãã©ãã¯ã®è»èŒª
ã®ã¿ã€ã€ã®è³ªæã¯ã
ãã©ãŒãã¥ã©1ïŒåŒ1ïŒã®è»èŒª
ã®ã¿ã€ã€ã®
質æãšæ¯èŒããŠå€§ããç°ãªããŸãã
ã¿ã€ã€ããŒã¯ïŒã¹ãããããŒã¯ïŒã® ãã¯ã¹ãã£ãè¡šé¢ã«äœæãããŸãã éåžžã«ç°ãªããã€ãŒã«ã§ç°ãªãã¿ã€ãã®è»ãäœæããå Žåã
ã¿ã€ã€ããŒã¯ããã€ãŒã«
ã«åãããã«ã¯ããã®ãã¯ã¹ãã£ãå€æŽããå¿
èŠããããŸãã
ãµãŠã³ããè¿œå ãã
â¢
SoundController.jsã¹ã¯ãªããã
ãCarãã²ãŒã ãªããžã§ã¯ãã«è¿œå ããŸãïŒ
Scripts / JavaScripts / SoundController.jsãããã©ãã°ã
ãŸã ïŒã
ãµãŠã³ãã³ã³ãããŒã©ãŒã³ã³ããŒãã³ãã«ã¯ããªãŒãã£ãªãã¡ã€ã«çšã®ã¹ããããããã€ããããããã«ç°ãªããªãŒãã£ãªãã¡ã€ã«ãå²ãåœãŠãå¿
èŠããããŸãã ãªãŒãã£ãªãã¡ã€ã«ã¯
ããããžã§ã¯ããã¥ãŒã® Sound / Carãã©ã«ãã«
ãããŸã ã
ãã©ãã°ã¢ã³ãããããïŒâ¢
CarEngine_D_upper-registerãã¹ããã
Dã« ãã©ãã°ã¢ã³ãããããããŸã
ã ããªã¥ãŒã ã
0.565ã«èšå®ã
ãŸããâ¢
CarEngine_E_midlow-registerãã¹ããã
Eã« ãã©ãã°ããŸã
ã ããªã¥ãŒã ã
0.8ã«èšå®ããŸã
â¢
CarEngine_F_midhigh-registerãã¹ãããFã«ãã©ãã°ããŸããé³éã
0.78ã«èšå®ããŸã
â¢
CarEngine_K_passing-rushãã¹ããã
Kã«ãã©ãã°ããŸã
ã é³éã
0.565ã«èšå®ããŸã
â¢
CarEngine_L_lower-registerãã¹ããã
Lã« ãã©ãã°ããŸã
ã é³éã
0.71ã«èšå®ããŸã
â¢
Wind-loop_stereo_22khz_16bitã
Windã¹ãããã«ãã©ãã°ããŸãã ããªã¥ãŒã ã
0.8ã«èšå®ããŸã
â¢
CarEngine_DEFL_tunnel-add_smallã
ãã³ãã«ãµãŠã³ãã¹ãããã«ãã©ãã°ã
ãŸãã ããªã¥ãŒã ã
0.8ã«èšå®ããŸã
â¢
Collision1ã
Crash Low Speed Soundã¹ãããã«ãã©ãã°ã
ãŸãã ããªã¥ãŒã ã
0.8ã«èšå®ããŸã
â¢
Car_crash1_smallerã
Crash High Speed Soundã¹ãããã«
ãã©ãã°ã¢ã³ãããããã
ãŸãã ããªã¥ãŒã ã
0.5ã«èšå®ããŸã
â¢
Car_skid1ã
ã¹ããããµãŠã³ãã¹ãããã«ãã©ãã°ã
ãŸããâ¢
CarTutorialSongã
ããã¯ã°ã©ãŠã³ããã¥ãŒãžãã¯ã¹ãããã«ãã©ãã°ã
ãŸãã ããªã¥ãŒã ã
1ã«èšå®ããŸãã
ããªã¥ãŒã èšå®ïŒããªã¥ãŒã èšå®ïŒ ããã¡ãããããã¯ç§ãã¡ãæäŸããèšå®ã«ãããŸããã ããŸããŸãªæå³ã§
ãåçãããŠãæ³åãããšããã®é³åãåŸãããšãã§ããŸãã ãŸãã¯ãããã«é²ãã§ç¬èªã®ãµãŠã³ãèšå®ã¡ãã¥ãŒãäœæããã²ãŒã å
ã§é³æ¥œãšãšãã§ã¯ãã®é³éãåå¥ã«èª¿æŽããããšãã§ããŸãã
å®æãšçµã¿ç«ãŠ
æåŸã«ã次ã®ã¹ã¯ãªãããã²ãŒã ãªããžã§ã¯ã
ïŒè»ïŒã«ãã©ãã°ããŸãã
â¢
ïŒã¹ã¯ãªãã/ JavaScriptïŒã® LightmapperObjectUV.jsâ¢
ïŒã¹ã¯ãªãã/ JavaScriptïŒããã®
CrashController.jsâ¢
Generate2DRe ection.cs ïŒã¹ã¯ãªãã/ CSharpScriptsïŒäœæããã²ãŒã ãè©Šãåã«ãæåŸã®1ã€ãè¡ãå¿
èŠããããŸãã ã«ã¡ã©ã¯è»ã«è¿œåŸããå¿
èŠããããŸããããããªããšãè»ã¯ç§»åãéå§ãããšããã«èŠéãé¢ããŸãã
â¢
Main_CameraïŒã¡ã€ã³ã«ã¡ã© ïŒã«ç§»åãã
ãè»ãã²ãŒã ãªããžã§ã¯ãã«ãã©ãã°ãããã·ã³ãå¶åŸ¡ããã®ã«äŸ¿å©ãªããã«ã«ã¡ã©ãåããŸãïŒ
ãè»ã«ã¡ã©ãã¹ã¯ãªããã®ã³ã³ããŒãã³ãå
ãè»ã«ã¡ã© ïŒã