Game engine with reanimated 2 possible? #1723
Unanswered
marcel-happyfloat
asked this question in
Q&A
Replies: 1 comment
-
Check this: expo/expo#11267 (comment) |
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.
-
Hello,
Is it possible to execute the worklets on every frame (e.g. requestAnimationFrame) and calculate some physics or bounding-boxes?
I want to archive a similar effect such as in this example:
https://github.com/hankzhuo/react-native-bouncing-ball
But I don't think calling the bridge or setState in every frame is the right approach. Can reanimated 2 work for such a use case, how?
I'm completely new to "reanimated" in general and I only find examples related to interactions or basic A->B transitions. So my question is if it is possible to create a "game loop" with it too? Any example? Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions