Skip to content

Commit

Permalink
Include how to use in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Kylogias authored Oct 25, 2021
1 parent b0438ca commit dbbce65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# godot-line-collider-2d
A collider that takes an array of Line2D as input and outputs a collision shape chain following the lines

## How to use
1. Put this script anywhere in the project
2. Attach this script to the bodies you want
3. Create a line anywhere in the scene (doesn't have to be shown) and use the built-in line tools to modify it
4. Expand the list in the exported variables list (on the right) to how many lines you want colliders for
5. Assign each node path to each line node

## TODO
Make the script work with rotation and scale

0 comments on commit dbbce65

Please sign in to comment.