Threejs Adventure

Playing with Threejs and posting my progress

Use Zustand for state management instead of React context

"At the moment React context can not be readily used between two renderers, this is due to a problem within React. If ReactDOM opens up a provider, you will not be able to consume it within . If managing state (like Redux) is your problem, then Zustand is likely the best solution"

Source: https://docs.pmnd.rs/react-three-fiber/advanced/gotchas

Btw, Zustand is super easy and awesome!

Dropped idea with using device orientation controls as camera

As it figures out, device orientation is not supported on some latest Android phones.

"I am baffled by the fact that constructors are not even capable to stick to a single API." - Random guy from Github

Going back to implementing camera controls on phone with touch gestures

Detect wall and object collision

No passing through walls like a ghost anymore 👻