{"id":19445701,"url":"https://github.com/kuritaro1122/rotatemanager","last_synced_at":"2026-05-18T05:37:56.807Z","repository":{"id":170530484,"uuid":"443249131","full_name":"kuritaro1122/RotateManager","owner":"kuritaro1122","description":"[Unity] GameObjectの回転を制御する。回転にかかる速度や時間を自由に制御可能。","archived":false,"fork":false,"pushed_at":"2022-10-06T13:14:37.000Z","size":13749,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T22:51:42.518Z","etag":null,"topics":["csharp","unity","unity-scripts"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kuritaro1122.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-31T04:06:47.000Z","updated_at":"2022-04-10T09:42:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"24485971-19e0-4f16-b5d4-7fef73668a55","html_url":"https://github.com/kuritaro1122/RotateManager","commit_stats":null,"previous_names":["kuritaro1122/rotatemanager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FRotateManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FRotateManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FRotateManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuritaro1122%2FRotateManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuritaro1122","download_url":"https://codeload.github.com/kuritaro1122/RotateManager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240630572,"owners_count":19832088,"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","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":["csharp","unity","unity-scripts"],"created_at":"2024-11-10T16:11:32.190Z","updated_at":"2026-05-18T05:37:51.768Z","avatar_url":"https://github.com/kuritaro1122.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RotateManager\nGameObjectの回転を制御する。回転にかかる速度や時間を自由に制御可能。\n\n# Demo\n![gif](/img/demo.gif/)\\\n[HyperNova](https://kuritaro1122.github.io/HyperNova-Web/)の敵や大砲の回転制御に使っています。\n\n# Requirement\n* UnityEngine;\n* System;\n\n# Usage\n① 任意のGameObjectにRotateManagerをコンポーネント\\\n② Set関数で目標の回転を設定\\\n③ StartRotate関数で値を設定して回転開始\n```\nTransform target;\nGameObject self;\nRotateManager manager = self.ComponentRotateManager();\n\nmanager.Set(target: target, lockPitch: true)\n    .StartRotate_FixedTime(duration: 1f);\n```\n\n# Contains\n\n## Public Function\n```\nRotateManager Set(Quaternion toRotation) // 静的な回転\nRotateManager Set(System.Func\u003cQuaternion\u003e toRotation) // 動的な回転\nRotateManager Set(Vector3 target, System.Func\u003cVector3\u003e upwards = null, bool lockPitch = false) // ターゲットを向く（静的な座標）\nRotateManager Set(System.Func\u003cVector3\u003e target, System.Func\u003cVector3\u003e upwards = null, bool lockPitch = false) // ターゲットを向く（動的な座標）\nRotateManager Set(Transform target, System.Func\u003cVector3\u003e upwards = null, bool lockPitch = false) // ターゲットを向く（Transform）\n\nvoid StartRotate(float duration, bool speedBase = false, TransitionType transitionType = TransitionType.FixedTimeAndKeep)\nvoid StartRotate_FixedTime(float duration, bool speedBase = false) // 固定時間かけて回転する\nvoid StartRotate_FixedTimeAndKeep(float duration, bool speedBase = false) // 固定時間かけて回転し、ターゲットを向き続ける\nvoid StartRotate_KeepConstansSpeed(float speed) // 一定速度で目標に向けて回転し続ける\n\nbool GetActive()\nbool GetFinished()\n```\n\n## Extension method\n```\nRotateManager ComponentRotateManager(this GameObject self)\n```\n\n# Note\n* StartRotate()のspeedBaseをtrueにすると処理が重くなるため、falseを推奨します。\n* ターゲットを向かせる時には、upwardsを設定した方が挙動が安定しやすいです。\n\n# License\n\"RotateManager\" is under [MIT license](https://en.wikipedia.org/wiki/MIT_License).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuritaro1122%2Frotatemanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuritaro1122%2Frotatemanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuritaro1122%2Frotatemanager/lists"}