Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igooose/unity-tpcamera
🎥 Third person camera system for unity project.
https://github.com/igooose/unity-tpcamera
third-person-camera unity unity-camera unity-package unity-scripts
Last synced: 3 days ago
JSON representation
🎥 Third person camera system for unity project.
- Host: GitHub
- URL: https://github.com/igooose/unity-tpcamera
- Owner: igooose
- Created: 2024-01-21T04:46:08.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-30T05:35:43.000Z (9 months ago)
- Last Synced: 2024-10-11T10:24:00.272Z (26 days ago)
- Topics: third-person-camera, unity, unity-camera, unity-package, unity-scripts
- Language: C#
- Homepage:
- Size: 27.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 🎥 TPCamera
**TPCamera** is a simple third person camera system for unity project.## 🔗 Download
download unity package: 👉 [TPCamera.unitypackage](https://github.com/vianagus/Unity-TPCamera/raw/main/_Unity%20Package/TPCamera.unitypackage) 👈## ⚙ Installation
1. Download and import the unity package into unity project.
2. Put TPCamera.cs on **_camera object_**.
3. Assign **_object to follow_** into `Follow` attribute.
4. Assign **_object to look at_** into `Look At` attribute.## 🧩 Attribute
Adjust the following attributes to affect the camera movement.
| Attribute | Type | Description |
| --- | --- | --- |
| **Target** | | |
| `Follow` | Transform | Target to follow. |
| `Look At` | Transform | Targer to look at. |
| **Look At** | | |
| `Look At Offset` | float | `Look At`'s offset position. |
| **Position** | | |
| `Max Distance` | float | Maximum distance to target. |
| `Smooth Damp` | float | Smooth the movement, set valut to `0` will disable smooth. |
| **Rotation** | | |
| `Yaw Sensitivity` | float | Affect yaw soeed. |
| `Pitch Sensitivity` | float | Affect pitch speed. |
| `Min Pitch` | float | Minimum pitch rotataion |
| `Max Pitch` | float | Maximum pitch rotation |
| **Obstacle Detection** | | |
| `Avoid Obstacle` | bool | Enable or disable obstacle detection. |
| `Obstacle Layer` | LayerMask | Specifies layers as obstacle. |
| `Distance to Obstacle` | float | Distance to obstacle hit point. |
| `Height to Obstacle` | float | Distance to obstacle in `y axis`. |