{"id":15777174,"url":"https://github.com/healeycodes/unity-smooth-camera-follow","last_synced_at":"2025-03-31T15:38:05.110Z","repository":{"id":45700138,"uuid":"135220345","full_name":"healeycodes/unity-smooth-camera-follow","owner":"healeycodes","description":"An extendable C# camera script for a 3D smooth follow. Designed for single-unit top-down use.","archived":false,"fork":false,"pushed_at":"2018-07-01T00:09:45.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-05T17:42:58.296Z","etag":null,"topics":[],"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/healeycodes.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":"2018-05-29T00:08:09.000Z","updated_at":"2022-07-15T03:49:05.000Z","dependencies_parsed_at":"2022-08-30T19:12:11.425Z","dependency_job_id":null,"html_url":"https://github.com/healeycodes/unity-smooth-camera-follow","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/healeycodes%2Funity-smooth-camera-follow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Funity-smooth-camera-follow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Funity-smooth-camera-follow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Funity-smooth-camera-follow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/healeycodes","download_url":"https://codeload.github.com/healeycodes/unity-smooth-camera-follow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246490809,"owners_count":20786063,"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-10-04T17:43:03.614Z","updated_at":"2025-03-31T15:38:05.084Z","avatar_url":"https://github.com/healeycodes.png","language":"C#","readme":"## Smooth Camera Follow\n\nWritten in C#. Designed for an RTS style camera. With smooth follow (X-,Y-,and Z-axis), and smooth rotate as well. Smooth meaning linear interpolation. Great for a quick game jam camera.\n\n\nVariables to experiment with:\n\n```C#\npublic Transform player;\npublic float moveSmoothTime = 1f; // Lower is slower\npublic float heightSmoothTime = 1f; // Lower is slower\npublic float rotationSmoothTime = 0.1f; // Lower is slower\npublic float followBehindDst = 5f;\npublic float lookThisFarInFront = 5f;\npublic float height = 12f;\n```\n\n### Setup\n\nSet the object's Transform that you wish to follow to `player`.\n\nThe camera will look at a point on the positive Z-axis from the object.\n\nPersonally, I like to negatively lerp the `followBehindDst` and `height` values upon player death.\n\n### License\n\nhttps://mit-license.org/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Funity-smooth-camera-follow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhealeycodes%2Funity-smooth-camera-follow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Funity-smooth-camera-follow/lists"}