Play animation based on impact position?
Hey! so i am working on this little football game and just asking myself, how can i play different ball control animations, based on where the ball might end up? So i prepared this little graphic to show you what i mean: so i have different animation for wach possible hit point, but how can i tell the player which to use? I know i could use something like "trajectory prediction" but i am not sure how i get the impact position.
Answer by Zynek · Nov 07, 2016 at 03:17 PM
You´re right that the prediction would be too complicated. I would suggest making simple rules that will predetermine this. Like: ball is moving on the ground - use anim 6 or 4 - depending which direction is ball approaching from ball is in mid air ... ball is flying way higher than players are - use anim 1
But yeah, if you want your game to look completely smooth, im afraid there´s no way around computing the whole trajectory of the ball - there i cannot assist.
Your answer
Follow this Question
Related Questions
How To preserve Forward momentum of an anim throughout another anim? 0 Answers
How to predict where the soccer ball should be intercepted by an AI player after being kicked? 0 Answers
Rigid body robot animation 0 Answers
Take Physics Off The Animation 0 Answers
Projectile Trajectory Precision 0 Answers