0
\$\begingroup\$

I've been trying to figure this out for quite some time now.

In Cricket games, when the bowler bowls, and batsman takes a shot, how does the ball sync with batsman's shot animation? For example, let's say the batsman hits a straight drive, how does the ball hit the bat perfectly?

Can anyone help me out with this?

I'm also curious about how in football games, the player animations sync with the football. How does the player's foot correctly hit the ball?

Thanks in advance.

\$\endgroup\$
4
  • \$\begingroup\$ You've tagged this with both Unity and Unreal. Which engine are you using for this project at present? \$\endgroup\$
    – DMGregory
    Commented Apr 16, 2019 at 9:46
  • \$\begingroup\$ I'm experimenting with both right now... \$\endgroup\$ Commented Apr 16, 2019 at 10:25
  • \$\begingroup\$ If you select one engine, answers can detail the specific implementation steps for that context. If you leave it open-ended, you'll tend to attract only answers that are more vague, outlining the overall strategy rather than specific steps. \$\endgroup\$
    – DMGregory
    Commented Apr 16, 2019 at 11:02
  • 1
    \$\begingroup\$ I didn't understand the question. Why would you want to sync it since it would be projectile and its the player's skill that when he should hit the ball at what time or speed. \$\endgroup\$
    – Saad Anees
    Commented Apr 16, 2019 at 14:34

1 Answer 1

1
\$\begingroup\$

Found some useful info in this thread (works with Unity) - Manipulating an animation towards a target object (ie. The hand and arm lean towards the target)

One useful approach would be to use IK to target the bat to position of the ball and blend it with the shot animation.

\$\endgroup\$
1
  • \$\begingroup\$ Thats right, you should use IK for this :) \$\endgroup\$ Commented May 16, 2019 at 18:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .