threlte / threlte

3D framework for Svelte
https://threlte.xyz
MIT License
2.24k stars 115 forks source link

Add ArrowHelper to @threlte/extras #978

Open LeoDog896 opened 3 weeks ago

LeoDog896 commented 3 weeks ago

https://threejs.org/docs/#api/en/helpers/ArrowHelper

Potentially supporting negative lengths?

joshwashywash commented 3 weeks ago

You can use the ArrowHelper with the T component. Or do you mean something more custom?

https://stackblitz.com/edit/jqya9c?file=src%2Fexample%2FScene.svelte

LeoDog896 commented 2 weeks ago

(gosh, I really should have added more context to this issue!)

Yep! just some custom wrapper around ArrowHelper that keeps it reactive and adds support for negative magnitudes - perhaps it can either be {from, to} or {origin, vector} as well?