pmndrs / drei-vanilla

🍦 drei-inspired helpers for threejs
https://pmndrs.github.io/drei-vanilla/
MIT License
448 stars 17 forks source link

Trail implementation #65

Open nyan-left opened 1 month ago

nyan-left commented 1 month ago

Describe the feature you'd like:

I would like Trail to get ported to this vanilla repository https://github.com/pmndrs/drei/blob/master/src/core/Trail.tsx

Suggested implementation:

I think it would be more elegant if the trail object extended THREE.Mesh<MeshLineGeometry, MeshLineMaterial>. This way, we could simply add the trail to any object and use that object's world position for the trail, eliminating the need to specify a separate target.