Skip to content

SomeRanDev/Godot-Trail3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godot Trail 3D

Adds a Trail3D node to Godot.

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

Alternatives

This project is CPU-bound, but it has the benefit of being compatible with the Compatibility renderer. If you're making a game with the Forward/Mobile renderer, you should probably use GPUTrail instead.

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).

  4. 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.

About

A native Godot addon that adds a Trail3D node to Godot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors