sveltejs / gl

A (very experimental) project to bring WebGL to Svelte
https://svelte.dev/repl/8d6d139a3d634c2fb1e1ff107c123dd5?version=3.16.4
MIT License
603 stars 26 forks source link

lookAt/targetTo/whatever needs to be able to break out of transforms #2

Closed Rich-Harris closed 5 years ago

Rich-Harris commented 5 years ago

A camera inside a group with transforms should be able to look at an object that isn't in that group. Maybe it also needs a global 'up'.

Maybe this can be done with string IDs? Or we could bind: to an object's CTM?

Supporting those bindings might be a nuisance. Or maybe we introduce a Target component specifically for this purpose?

Rich-Harris commented 5 years ago

Fixed in 0.0.5 with the addition of <Target>