Proof of concept for a #r3f#threejs editor, watch this video with sound on ๐!
Current mood: It works but it'll be a big effort to make it usable.
๐งต for how it works ๐
The scene-to-source wiring is done by transforming the scenes AST wrapping scene objects in a group with contextual user data.
Clicking on a scene object we traverse up the Three.js scene and if this data exists we can do something with it.
Only the opened scene is transformed.
Update, sound on ๐! Here I talk through:
๐ Focusing scene objects [f]
๐ Transforming scene objects [t,r,s]
๐ฏ Focus mode [shift + f]
This is all to make my life easier when making my game with R3F. Think they'll be useful for you too? Let me know in the comments! ๐