SomeRanDev / Godot-Trail3D

A native Godot addon that adds a Trail3D node to Godot.
MIT License
2 stars 1 forks source link

Godot Trail 3D

Adds a Trail3D node to Godot.

It is compatible with GDScript, C#, and Rust!

Credits

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.

Installation

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.

How to Use

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.