How to make these controls like in flippy Bottle game?
You swipe and bottle flips depending on swiping angle and power.
C# Script will be much appreciated.
Nobody here to help?
what is the targeted platform ?
I did not tried this befor. Basically you will need swipes start position and end position. Then you can subtract them and get the direction vector (end - start). Later you can add force on the bottle as this direction vector.
https://docs.unity3d.com/Manual/UnderstandingVectorArithmetic.html
1 Like
Thanks for the answer. The target platform is mobile.
I’ve understood what you said the swipe force and vector but how to make the bottle rotate freely according to the force?
all games are only big fake ![]()
check where the swipe is (left/right/up/down from bottle) and add suitable torque force (or check how strong swipe is). Sorry I don’t know this game.
use get touch for mobile
1 Like
