- Home /
how to shot a soccer ball in curve path according to the swipe type
How to move the soccer ball in curve path?? Please some one help me... I have to write a logic for swipe type.... If I will swipe vertically than the ball should travel straight to the goal. If I will swipe in curve shape for example, in "C" shape then it should travel in "C" path. If swipe in opposite "C" shape than it should travel in opposite "C" path. Please someone help me
This is the link for the game. I think this game is only available for iPhone or Android,
http://pikpok.com/games/football/
Please help me in writing the logic
Answer by robertbu · Jan 18, 2013 at 10:14 PM
I assume this is repost. Answer in original question:
http://answers.unity3d.com/questions/377944/how-to-make-a-ball-rotate-as-per-its-moving-direct.html
Answer by Adishah11 · Sep 20, 2018 at 05:43 AM
Check this asset its has both 2d and 3d implementation link: https://assetstore.unity.com/packages/tools/physics/2d-and-3d-swipe-ball-control-96912?aid=1100l3bpb