Adds a Trail3D node to Godot.
It is compatible with GDScript, C#, and Rust!
This is a port of @axilirate's gist.
This version is rewritten from GDScript to Rust, and it's optimized to remove the expensive list manipulations.
@axilirate's version is a Godot 4.0 port from Oussama BOUKHELF's Godot 3 Trail System
You can view and comply with their license here.
I also added support for a color gradient inspired by KindoSaur's YouTube video.
1) Install the Rust Programming Language if you don't have it (you can check if you have it by running cargo
on the command prompt).
2) Download this repo.
3) Run BUILD.bat
(on Windows) or BUILD.sh
(on Linux).
5) Finally, copy the addons/SomeRanDev_Trail3D/
folder into your project's addons/
folder.
The Trail3D
node should not be moved directly; instead, add it as a child to a mobile node.
To make the colors work, add a Material Override
and enable Vertex Color -> Use as Albedo
(or read from COLOR
in a shader material).
If you want transparency, you also need to enable it in the material.