{"id":20497943,"url":"https://github.com/mimisukemaster/belt-conveyor-system","last_synced_at":"2025-09-25T06:31:06.187Z","repository":{"id":53174897,"uuid":"352682011","full_name":"mimisukeMaster/Belt-Conveyor-System","owner":"mimisukeMaster","description":"System of Belt-Conveyor with Unity / Rigidbodyを用いたベルトコンベヤーの物理的なシミュレーション","archived":false,"fork":false,"pushed_at":"2021-04-21T13:02:28.000Z","size":910,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T04:33:58.191Z","etag":null,"topics":["belt-conveyor","unity","unity-scripts","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mimisukeMaster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-29T14:56:52.000Z","updated_at":"2024-08-03T15:37:30.000Z","dependencies_parsed_at":"2022-09-15T04:00:57.903Z","dependency_job_id":null,"html_url":"https://github.com/mimisukeMaster/Belt-Conveyor-System","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mimisukeMaster/Belt-Conveyor-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimisukeMaster%2FBelt-Conveyor-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimisukeMaster%2FBelt-Conveyor-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimisukeMaster%2FBelt-Conveyor-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimisukeMaster%2FBelt-Conveyor-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mimisukeMaster","download_url":"https://codeload.github.com/mimisukeMaster/Belt-Conveyor-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mimisukeMaster%2FBelt-Conveyor-System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276875154,"owners_count":25720241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["belt-conveyor","unity","unity-scripts","unity3d"],"created_at":"2024-11-15T18:12:34.801Z","updated_at":"2025-09-25T06:31:05.738Z","avatar_url":"https://github.com/mimisukeMaster.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Belt-Conveyor-System\n\n\n### \u003e Made with Unity-version:2019.4.20f(LTS)\n\n\n## unityでのinspectorの操作について\n**[注意1]Scene上で複製する際、TransformのRotateを変えても、上に置かれたものの動く方向は変わりません。**\n- 例えばBeltconveyorを4つに複製して、四角状に配置した場合(Picture1)\n  - そのまま特に設定せずにプレイすると、上の青いCubeは異なるBeltConveyorに乗り移っても同じ方向に移動を続けてしまいます。(Gif1)\n#### Picture1\n![このように四角状に配置します](https://user-images.githubusercontent.com/81568941/113006553-72ba0f80-91b0-11eb-9bab-64afa3b0034e.png)\n#### Gif1\n![このように変な挙動をします_2gif](https://user-images.githubusercontent.com/81568941/113430621-73071480-9415-11eb-8d58-84dec7fbe78e.gif)\n- これは上側のBeltConveyorが、乗る物体の動く方向をスクリプトで決めていて、**ワールド座標のZ軸**に対してどの向き(前後左右(`forward`,`back`,`left`,`right`))に動かすかを指定しているため、角度をずらすとワールド座標上のZ軸の方向とBeltConveyorの見た目上の前方向がずれる(ローカル座標上のZ軸の向きが変わる)ことにより生じるものです。\n- → 対処法として、初めに、それぞれのHierarchy内の`BeltConveyor`の中に含まれる`Onbelt`オブジェクト(上の物体が載るところのオブジェクト)を選択します。(**Picture2**)\n次にinspectorにてアタッチされている`BeltConveyorSimple`コンポーネントの`Chosen Vec`パラメータを選択し、表示された向きの選択肢を、***そのBeltConveyorの上にある物体が運ばれる方向の、ワールド座標Z軸から見た向き***に合わせた選択肢にします。(Picture3)\n#### Picture2\n![このOnBeltをせんたくします](https://user-images.githubusercontent.com/81568941/113010478-d42fad80-91b3-11eb-9f96-f9f8ce844ab3.png)\n#### Picture3\n![ここをいじってｘ軸に対してどうかを指定します](https://user-images.githubusercontent.com/81568941/113010508-dabe2500-91b3-11eb-8bcf-e7106b7deba2.png)\n\n今回のような四角状に配置した場合、真上から全体を見るとPicture4のようになります。\n右上にある軸を見て分かる通り、Z軸は写真上の上側です。よって`1`の`BeltConveyor`の`ChosenVec`をZ軸に対して正の向きに動かしたいので`forward`を選択します。\n同様にして`2`の`BeltConveyor`の`ChosenVec`はZ軸に対して右側に動かしたいので`right`を選択し、`3`のはZ軸に対して負の向きに動かしたいので`back`を、`4`のはZ軸に対して左側に動かしたいので`left`を選択します。(Picture5)\n- 以上の設定を行うとGif2のような正しい挙動になります。\n#### Picture4\n![この場合の上から見た向き](https://user-images.githubusercontent.com/81568941/113303649-429f7780-933c-11eb-8dab-819d2f317655.png)\n#### Picture5\n![1sen](https://user-images.githubusercontent.com/81568941/113421069-65e22980-9405-11eb-83e8-b539b73c74bd.png)\n#### Gif2\n![Vec指定後](https://user-images.githubusercontent.com/81568941/113430024-6504c400-9414-11eb-9267-7c20d8b4f03e.gif)\n\n\n\n\n**[注意2]Scene内での下側のBeltConveyorのObject(GameObject名:UnderBelt)は_「^(緑の矢印)」マークが逆になるため、ConveyorSimple.csのReverseパラメータにチェックを入れてください**\n- 入れなくてもエラーが起こる訳ではありませんが、見た目が変になります。施す前と後で比較します:\n#### Before (Picture6)in PlayMode,Gif3\n- [ ] Reverse\n![Reverse入れないとインプレイ](https://user-images.githubusercontent.com/81568941/113423861-2ff37400-940a-11eb-811d-a59d4b86e451.png)\n![Reverseなしgif](https://user-images.githubusercontent.com/81568941/113424070-7e087780-940a-11eb-9279-888bfdb3f36e.gif)\n\n#### After (Picture7)in PlayMode,Gif4\n- [x] Reverse\n![Reverseありだとインプレイ](https://user-images.githubusercontent.com/81568941/113423891-3da8f980-940a-11eb-8352-f915038adaec.png)\n![Reverseありgif](https://user-images.githubusercontent.com/81568941/113424086-852f8580-940a-11eb-8bc5-7a90e063abd2.gif)\n\n\n\n## 取り込み上の注意\nZIP形式でDLした後、**Unity**に取り込んだ際に多少のエラーが出てくる場合があるかもしれません。(**Picture8**)\n正常通り再生できるのであれば問題いりませんが、万が一再生を阻止されエラーの修正を促されたり、明らかなバグ(画像情報がないなど)があれば、\n*GitHub Desktop* を開いて`File-\u003e Clone repository` を選択し、この*repository*を**Clone**して取り込んでください。\n#### Picture8\n![こんなエラーが発生することがあります_LI](https://user-images.githubusercontent.com/81568941/115558022-4005c180-a2ed-11eb-95fc-692615bc4dd0.jpg)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimisukemaster%2Fbelt-conveyor-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmimisukemaster%2Fbelt-conveyor-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmimisukemaster%2Fbelt-conveyor-system/lists"}