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\$
  • \$\begingroup\$ You've tagged this with both Unity and Unreal. Which engine are you using for this project at present? \$\endgroup\$ – DMGregory Apr 16 at 9:46
  • \$\begingroup\$ I'm experimenting with both right now... \$\endgroup\$ – Transparent Root Apr 16 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 Apr 16 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 Apr 16 at 14:34
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\$
  • \$\begingroup\$ Thats right, you should use IK for this :) \$\endgroup\$ – ColdSteel May 16 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.