Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cursedprograms/floaty-follower
A Floaty Follower for Unity
https://github.com/cursedprograms/floaty-follower
csharp game-development unity unity3d
Last synced: 3 months ago
JSON representation
A Floaty Follower for Unity
- Host: GitHub
- URL: https://github.com/cursedprograms/floaty-follower
- Owner: CursedPrograms
- License: mit
- Created: 2024-08-22T14:48:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-20T16:11:27.000Z (4 months ago)
- Last Synced: 2024-10-20T18:59:05.495Z (4 months ago)
- Topics: csharp, game-development, unity, unity3d
- Language: C#
- Homepage:
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Twitter: @NorowaretaGemu](https://img.shields.io/badge/[email protected]?style=flat)](https://x.com/NorowaretaGemu)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
# floaty-follower
## How to Use
### 1. Attach the Script
Attach the `FloatyFollower` script to the GameObject you want to have follow the target.### 2. Assign the Target
In the Unity Inspector, drag the target object (e.g., the player) into the `Target` field of the `FloatyFollower` script.### 3. Adjust Parameters
- **Speed:** Controls how quickly the object moves toward the target.
- **Rotation Speed:** Determines how fast the object rotates to face the target.
- **Float Amplitude:** Sets the vertical distance the object will float up and down.
- **Float Frequency:** Controls how fast the object oscillates vertically.
- **Turn Smoothness:** Affects how smoothly the object rotates.### 4. Customize the Motion
You can tweak the `speed`, `rotationSpeed`, `floatAmplitude`, `floatFrequency`, and `turnSmoothness` parameters to achieve the desired effect.
© Cursed Entertainment