-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About the flop effect #77
Comments
Is it in the same plane, two planes or do you want full-3d mesh? |
@ivanpopelyshev Which kind of code will be more streamlined? |
You need a Mesh, not sprite. Maybe SimpleMesh to make it simple. Also, you have to calculate the geometry yourself, pixijs does not have any instruments to get intersections of your lines or physics to drag this corner. Regular pixijs stuff. Add projection plugin when you are ready :) |
2 Meshes actually, each of 4 vertices. |
@ivanpopelyshev mash should be done, let me try and see thanks for your reply |
@ivanpopelyshev |
you can just change meshv according to your slider. As for transforms - well, position/scale/rotation still works if you need to position your card in center of screen and resize it. btw I usually use (0,0) in center. |
I want to do this. I have an idea to hide the card-to-mouse distance through the mask, but a lot of code needs to be written. Is there a more elegant and short way?
For example, there is a way to control the area Sprite3d euler y to flip
The text was updated successfully, but these errors were encountered: