Godot 3D Trail in C#
Because I've seen a lot of Trail made in GDScript and none in C#, I figured I might as well just rewrite the existing ones in C# and make them available to everyone.
I translated metanoia83's Motion Trail which was based on dbp8890's Godot 3's Motion Trail.
Demo
Here's a GIF demo of how it'd look like:
Features
- A boolean value to enable/disable trailing
- Setting start and end's colours and widths
- Easing trail's width
- Determine distance needed to add a new segment to the line
- Lifespan for each segment
Installation
To use this script:
- Copy
Trail.cs
to your project's folder - Create a
MeshInstance3D
Node - Attach
Trail.cs
to the created node - Have fun!
Acknowledgements
- metanoia83
- dbp8890
- Katherine Oelsner (Her readme.so made it easier to write this readme file)