An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# UnityRopeController

> A simple component generates a rope, rendered as a line, between two GameObjects.

![](./screenshot.png)

## 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.