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
-
Hello,
I am doing a prototype of a battle game.
I am a bit blocked with the Atlas transformation.
![Simulator Screenshot - iPhone 13 mini - 2024-06-08 at 18 20 34](https://private-user-images.githubusercontent.com/10862109/337918427-f5bb3ebb-227c-46b6-b497-2fb571fd1e02.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MDM3MjksIm5iZiI6MTcxOTcwMzQyOSwicGF0aCI6Ii8xMDg2MjEwOS8zMzc5MTg0MjctZjViYjNlYmItMjI3Yy00NmI2LWI0OTctMmZiNTcxZmQxZTAyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDIzMjM0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE2ZTZlNGYzNTE3YjEyMzc3MWExYmJhMzViMDdmZjUxNTNlNzdlMTQzNTYwNzM3OGExM2FiMjU0YWE2MTdkODQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yJDaVzJRvVBrDymhSFwULmKCzvvrm8RngpBs2Hatl9s)
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