https://github.com/neogeek/unityropecontroller
A simple component generates a rope, rendered as a line, between two GameObjects.
https://github.com/neogeek/unityropecontroller
unity
Last synced: about 2 months ago
JSON representation
A simple component generates a rope, rendered as a line, between two GameObjects.
- Host: GitHub
- URL: https://github.com/neogeek/unityropecontroller
- Owner: neogeek
- License: mit
- Created: 2024-01-24T18:01:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-31T23:55:57.000Z (over 1 year ago)
- Last Synced: 2025-04-07T21:40:02.479Z (about 1 year ago)
- Topics: unity
- Language: C#
- Homepage:
- Size: 1010 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnityRopeController
> A simple component generates a rope, rendered as a line, between two GameObjects.

## Install
### Unity Package Manager
#### Git
```json
{
"dependencies": {
"com.scottdoxey.unityropecontroller": "https://github.com/neogeek/UnityRopeController.git#v1.0.0",
...
}
}
```
## Setup
1. Create a GameObject with a kinematic `RigidBody` and `LineRenderer` components.
1. Attach the `RopeController` and connect the `RigidBody` to the `Anchor` property and the `LineRenderer` to the `LineRenderer` property.
1. Create a second GameObject with a kinematic `RigidBody`.
1. Attach that `RigidBody` to the `Target` property of the `RopeController` component on the first GameObject.