/UnityRopeController

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

Primary LanguageC#MIT LicenseMIT

UnityRopeController

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

Install

Unity Package Manager

https://docs.unity3d.com/Packages/com.unity.package-manager-ui@2.0/manual/index.html

Git

{
  "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.
  2. Attach the RopeController and connect the RigidBody to the Anchor property and the LineRenderer to the LineRenderer property.
  3. Create a second GameObject with a kinematic RigidBody.
  4. Attach that RigidBody to the Target property of the RopeController component on the first GameObject.