-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
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)-- aTHREE.Vector3[2,2,2]-- a 3-tuple2-- 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
Reactions are currently unavailable