Replies: 1 comment
-
there are many things in three that you must do imperatively and that is fine. this is one of these cases. that doesnt mean you cant declare it, abstract it as its own component and use hooks in it to handle imperative code cleanly (fixed-state: useState, conditional-state: useMemo, effects: useEffect). so that in your main branch you will have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey !
I'm trying to recreate the misc_controls_pointerlock example of the ThreeJs documentation in React Three Fiber.
https://github.com/mrdoob/three.js/blob/master/examples/misc_controls_pointerlock.html
When making the floor, I have to use a PlaneGeometry but I need to use the toNonIndexed method like this :
floorGeometry = floorGeometry.toNonIndexed();
I wanted to know how can we do it declaratively with React Three Fiber
Beta Was this translation helpful? Give feedback.
All reactions