Help to translate Atlas items #2465
Replies: 1 comment
-
Actually, I think I made a mistake assuming it is possible to translate atlas element. |
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,
I am doing a prototype of a battle game.
I am a bit blocked with the Atlas transformation.

Here the battleground, I tried to transform each rectangle of the Atlas to the "target" with a timing animation.
I tried a lot of thing but nothing worked.
I took the code from the https://shopify.github.io/react-native-skia/docs/shapes/atlas/#rsxform
I tried
useRSXformBuffer
but It's only for rotate scale transformsuseRectBuffer
is only to transform the rectangle and not its position.I rework the code to not use
<Atlas/>
but I had some performance issue with huge number of bullets.Do you know how I can do that ?
Thanks for the futur answers !
Beta Was this translation helpful? Give feedback.
All reactions