Prop tags for declaring scene transformable props
If a custom component defines position / rotation / scale shorthand's triplex should handle it by being transformable in scene but limited the transforms to the appropriate axis.
Props:
- position-x/y/z
- scale-x/y/z
- rotation-x/y/z
Let's discuss.
I think the above, and the already built in array format, are the only plausible defaults because they are built into R3F. Otherwise, I think you would need UI hints to guide Triplex to attaching a gizmo to a given set of props.
Thanks, I agree.
I think you would need UI hints to guide Triplex to attaching a gizmo to a given set of props.
What would that look like?
I suppose some kind of data format in a comment.
// @triplex-gizmo-position: { x: posX, y: posY }
const Enemy = ({ posX, posY }) => (
// <mesh> ...
)