Add a docs/cookbook.mdx page with different recipes:
How to convert a fiber Vector3 into a THREE.Vector3
Fiber has a Vector3 type which can be:
new THREE.Vector3(2,2,2) -- a THREE.Vector3
[2,2,2] -- a 3-tuple
2 -- a number
function toThreeVec3(v: Vector3) {
return v instanceof THREE.Vector3 ? v : new THREE.Vector3(...(typeof v === 'number' ? [v, v, v] : v))
}
Using <Suspense> with suspend-react
TODO: but can get inspired from https://discord.com/channels/740090768164651008/740094974187798609/1306911036716355594
Add a
docs/cookbook.mdxpage with different recipes:How to convert a fiber
Vector3into aTHREE.Vector3Fiber has a
Vector3type which can be:new THREE.Vector3(2,2,2)-- aTHREE.Vector3[2,2,2]-- a 3-tuple2-- a numberUsing
<Suspense>with suspend-reactTODO: but can get inspired from https://discord.com/channels/740090768164651008/740094974187798609/1306911036716355594