GaryMcWhorter / Verlet-Chain-Unity

A chain/rope simulation in Unity using Verlet Integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Verlet Chains

Verlet Chains

About

A chain/rope simulation in Unity using Verlet integration instead of rigidbodies and constraints.

Uses GPU Instancing to draw the chain links from a single GameObject script.

Inspired by jongallant's 2D version

Getting Started

Git clone the project and open the Sample Scene to see the use.

Rope - Empty gameObject with the Rope script and Line Renderer (untick to turn off)

Click once to place the start point, click again to place the end point.

Follow how that is done in the source to understand how to place any chain at any 1 or 2 points in space.

About

A chain/rope simulation in Unity using Verlet Integration

License:MIT License


Languages

Language:C# 100.0%