Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kylogias/godot-line-collider-2d
A collider that takes an array of Line2D as input and outputs a collision shape chain following the lines
https://github.com/Kylogias/godot-line-collider-2d
Last synced: 2 months ago
JSON representation
A collider that takes an array of Line2D as input and outputs a collision shape chain following the lines
- Host: GitHub
- URL: https://github.com/Kylogias/godot-line-collider-2d
- Owner: Kylogias
- License: mit
- Created: 2021-10-22T16:37:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-25T19:52:52.000Z (about 3 years ago)
- Last Synced: 2024-08-02T06:17:38.468Z (6 months ago)
- Language: GDScript
- Homepage:
- Size: 3.91 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-godot - Line Collider 2D - A script which adds colliders that follow an array of Line2Ds (useful for prototypes). (Plugins and scripts / 3D)
- awesome-godot-3 - Line Collider 2D - A script which adds colliders that follow an array of Line2Ds (useful for prototypes). (Plugins and scripts / 3D)
- awesome-godot-3 - Line Collider 2D - A script which adds colliders that follow an array of Line2Ds (useful for prototypes). (Plugins and scripts / 3D)
README
# 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