{"id":13661942,"url":"https://github.com/austephner/ThirdPersonCamera","last_synced_at":"2025-04-25T06:30:46.291Z","repository":{"id":163774672,"uuid":"442518698","full_name":"austephner/ThirdPersonCamera","owner":"austephner","description":"A highly configurable feature-rich third person camera.","archived":false,"fork":false,"pushed_at":"2022-02-22T02:39:54.000Z","size":31,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-10T17:45:22.505Z","etag":null,"topics":["camera","gamedev","thirdperson","unity","unity3d","utility"],"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/austephner.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-28T16:20:59.000Z","updated_at":"2024-03-14T20:04:25.000Z","dependencies_parsed_at":"2024-08-02T05:11:41.792Z","dependency_job_id":null,"html_url":"https://github.com/austephner/ThirdPersonCamera","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/austephner%2FThirdPersonCamera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austephner%2FThirdPersonCamera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austephner%2FThirdPersonCamera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austephner%2FThirdPersonCamera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austephner","download_url":"https://codeload.github.com/austephner/ThirdPersonCamera/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250767010,"owners_count":21483906,"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":["camera","gamedev","thirdperson","unity","unity3d","utility"],"created_at":"2024-08-02T05:01:44.953Z","updated_at":"2025-04-25T06:30:45.285Z","avatar_url":"https://github.com/austephner.png","language":"C#","funding_links":[],"categories":["C\\#"],"sub_categories":[],"readme":"# Third Person Camera\nA highly configurable feature-rich third person camera.\n\n#### Features\n- Tons of configuration options\n- Layer based reposition clipping\n- Over-the-shoulder horizontal offset and realtime shoulder swapping\n- Zoom, rotate horizontally/vertically, adjust height\n- Separate horizontal and vertical rotation speeds and sensitivities\n- Extensible\n- Control the camera through scripting or let it update itself with Unity's `Input` system\n- Inlcluded prefab works out of the box\n\n![Example](https://i.imgur.com/LnR1Eg8.gif)\n\n#### Changelog\n- 1.1.1 (Current)\n  - Added function to retrieve a world-raycasted point given a screen point\n- 1.1.0\n  - Added `lookTarget` property to override `lookInput`, causing camera to forcibly rotate to look at another `transform`.\n  - Removed `[ExecuteAlways]` from the camera's behaviour\n  - Fixed `_targetZoom` bug in `Start()` and inspector editing\n  - Added some public utilities\n- 1.0.1\n  - Package fix for importing into Unity through the Package Manager\n  - Small code adjustments\n- 1.0.0\n  - Initial release\n\n# Getting Started\n1. Add the package to Unity through the Package Manager or download the zipped version and extract it to your assets folder.\n2. Drag and drop the `Samples/ThirdPersonCamera.prefab` into your scene. \n3. Assign a follow target if needed.\n\u003cbr\u003e\u003cbr\u003e\nThat's it!\n\n# Configuration\nNearly every field on the `ThirdPersonCamera` component has a tooltip.\n\n![Inspector](https://i.imgur.com/Rkm9KKe.png)\n\n| Field                           | Description                                                                                                                                    | Example Value                 |\n|---------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------|\n| Draw Debug                      | Enables debug logging and additional debug lines.                                                                                              |                               |\n| Draw Gizmos                     | Enables gizmos.                                                                                                                                |                               |\n| Follow Target                   | The `Transform` the camera should physically follow.                                                                                           | Your character, any POI, etc. |\n| Self Get Player Input           | Allows this camera to retrieve input data to update itself without external intervention.                                                      |                               |\n| Invert Horizontal Camera Input  | All incoming horizontal input will be inverted.                                                                                                |                               |\n| Invert Vertical Camera Input    | All incoming vertical input will be inverted.                                                                                                  |                               |\n| Move Lerp Speed                 | How fast the camera lerps to the assigned follow target.                                                                                       | 10                            |\n| Zoom Lerp Speed                 | How fast the camera's zoom lerps in and out.                                                                                                   | 10                            |\n| Min Zoom In                     | How close the camera can zoom into its origin.                                                                                                 | 1                             |\n| Max Zoom Out                    | How far the camera can zoom out from its origin.                                                                                               | 30                            |\n| Camera                          | The actual camera component.                                                                                                                   |                               |\n| Height Transform                | The transform which controls the height aspect of the camera. Must be a child of the main transform.                                           |                               |\n| Horizontal Offset Transform     | The transform which controls the horizontal offset, the \"over the shoulder\" aspect. Must be a child of the height transform.                   |                               |\n| X Axis                          | The transform which controls X axis rotation. Must be a child of the horizontal offset transform.                                              |                               |\n| Camera Transform                | The transform which has the `Camera` component on it. Must be a child of the X Axis transform.                                                 |                               |\n| Look Up Max Angle               | The \"maximum\" look up angle in degrees. This is usually a negative number since a negative angle is required to rotate the camera upwards.     | -60                           |\n| Look Down Min Angle             | The \"minimum\" look down angle in degrees. This is usually a positive number since a positive angle is required to rotate the camera downwards. | 90                            |\n| Horizontal Rotation Lerp Speed  | How fast the horizontal rotation lerps.                                                                                                        | 1                             |\n| Horizontal Rotation Sensitivity | The horizontal rotation sensitivity.                                                                                                           | 1                             |\n| Vertical Rotation Lerp Speed    | How fast the vertical rotation lerps.                                                                                                          | 1                             |\n| Vertical Rotation Sensitivity   | The vertical rotation sensitivity.                                                                                                             | 1                             |\n| Camera Clipping Layermask       | All layers that the camera can be clipped with.                                                                                                | Default                       |\n| Forward Camera Clip Radius      | The forward raycast spherical radius for detecting camera clipping.                                                                            | 0.1                           |\n| Horizontal Camera Clip Radius   | The horizontal raycast spherical radius for detected camera clipping.                                                                          | 0.1                           |\n| Camera Clip Point Offset        | How far away from the raycasted clip point the camera will be placed on the hit point's normal.                                                | 0.25                          |\n| Camera Clipping Lerp Speed      | How fast the camera lerps to the clip point offset. The higher the value, the less likely clipped geometry will be visible.                    | 100                           |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustephner%2FThirdPersonCamera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustephner%2FThirdPersonCamera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustephner%2FThirdPersonCamera/lists"}