{"id":13661514,"url":"https://github.com/sinbad/UnitySpline2D","last_synced_at":"2025-04-25T02:33:35.221Z","repository":{"id":139584295,"uuid":"75311569","full_name":"sinbad/UnitySpline2D","owner":"sinbad","description":"2D spline utility for Unity","archived":true,"fork":false,"pushed_at":"2021-04-12T09:52:01.000Z","size":173,"stargazers_count":69,"open_issues_count":1,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-02T05:13:13.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sinbad.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}},"created_at":"2016-12-01T16:34:01.000Z","updated_at":"2024-06-29T17:18:23.000Z","dependencies_parsed_at":"2024-01-14T14:31:07.238Z","dependency_job_id":null,"html_url":"https://github.com/sinbad/UnitySpline2D","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FUnitySpline2D","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FUnitySpline2D/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FUnitySpline2D/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinbad%2FUnitySpline2D/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinbad","download_url":"https://codeload.github.com/sinbad/UnitySpline2D/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223979395,"owners_count":17235392,"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":[],"created_at":"2024-08-02T05:01:36.139Z","updated_at":"2024-11-10T16:30:51.164Z","avatar_url":"https://github.com/sinbad.png","language":"C#","readme":"# Unity Spline2D\n\n\u003e #### Note: I have stopped using Unity and so am not maintaining this library any more.\n\nUnity Spline2D is a free 2D simple spline library for Unity. \n\n\u003ca href=\"https://www.youtube.com/watch?feature=player_embedded\u0026v=io6q2XcSYlk\"\n target=\"_blank\"\u003e![Screenshot](screenshot.png)\u003c/a\u003e\n\n## Features\n\n* **Easy to use**: define a series of intersection points and that's it. The spline\n  will pass through those points with a default Catmull-Rom curvature. No\n  need to set tangent control points.\n* **Positions and Derivatives**: get both a position on the curve and its \n  derivative (to get facing)\n* **Interpolate by Distance**: interpolating by `t` alone can result in varied\n  speeds along the curve if your points are not equidistant. With Spline2D you\n  can ask for a position a specific distance along the curve instead, and therefore\n  traverse the curve at a known speed regardless of the structure of the curve.\n* **Tweakable curvature**: if you want something other than Catmull-Rom style\n  curves, you can increase/decrease the `Curvature` property to change the shape\n* **Optimised for 2D**: always flat, defaults to X/Y like 2D mode in Unity \n  but can be switched to display/edit in X/Z for use with 3D floor planes\n\n## Installation\n* Place `Spline2D.cs` and `Spline2DComponent.cs` anywhere you like\n* Place `Spline2DInspector.cs` in an `Editor` subfolder somewhere.\n\n## Usage: \n\n* To just use splines from general code, instantiate `Spline2D` and call its\n  AddPoint methods etc to build the spline\n* To use a spline in a scene \u0026 save it, use `Spline2DComponent` as a regular\n  Unity component. There is a inspector with buttons to add/remove points, and\n  you can select points and drag them around to change the curve.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016-2019 Steve Streeting\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## Notes\n* Tested in Unity 5.4 - 2018\n* Pull requests welcome!\n\n[Spline2D]: https://github.com/sinbad/UnitySpline2D\n","funding_links":[],"categories":["C\\#","Open Source Repositories","Open Source Packages"],"sub_categories":["2D"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinbad%2FUnitySpline2D","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinbad%2FUnitySpline2D","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinbad%2FUnitySpline2D/lists"}