Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by John Michael · Oct 04, 2012 at 12:20 PM · football

How do I create a soccer penalty shootout in Unity 3D?

Hi,

I am a student and I want to create a soccer penalty shootour in Unity 3D. In my game, I want a character to kick a soccer goal into a goal being protected by a goalkeeper. Also, I want the game to be set in a soccer stadium. Does anyone have any ideas on how I should start to create my game?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Graham-Dunnett · Oct 04, 2012 at 12:37 PM

Create a 3d model of a football stadium. Use a popular modelling package like 3dsmax. Bear in mind that you probably don't need a whole stadium.

Create a 3d model of a football player. Use a popular modelling package like 3dsmax. Aim for a few thousand polys.

Create a 3d model of a goalie. Use a popular modelling package like 3dsmax. Aim for a few thousand polys.

Book some time in a mo-cap studio, hire an actor, ideally a footballer, who can make penalty kicks and goal saves, and capture the animation data from the session. Clean up the mo-cap data and break it into clips you can use in Unity. (Idle animations for goalie and player, player starts to run, player running, player kicking a ball, player celebrating, player shaking his head, player jogging back towards centre circle, goalie sliding towards a ball, goalie diving towards a ball, goalie standing up from floor etc) Look through the data at http://mocap.cs.cmu.edu/ in case there is anything useful. You'll probably want fbx versions.

While you are doing that, Unity should have released Unity 4.0 which has some awesome new animation features called Mecanim. Mecanim will allow you to create the states that your footballer and goalie will need to be in, and manage the blend trees for you.

You can then get on with the interface that you need. Your player is going to need to run towards the ball, and kick with a certain strength and direction. Meanwhile, you will need to write code that mimics what the goalie is doing, so, predicting which way the ball will be kicked, and jump/dive in that direction. I think to keep things simple, to begin with, just get the goalie to dive in a random direction.

Good luck, and hope this helps.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image thellama · Oct 04, 2012 at 11:25 PM 1
Share

Or he could just hit up $$anonymous$$ixamo.com and grab some of their soccer motions for about ten thousand dollars cheaper.

avatar image
0

Answer by GluedBrain · Aug 24, 2014 at 03:01 AM

Here is a tutorial series on How to create a Penalty Kick Game. It might help you link text

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to reset player position when a ball hits the goal box? 1 Answer

The Script keeps executing..instead executing onec 0 Answers

Free kick unity3d tutorial 1 Answer

Random Fixture Generation 0 Answers

Detect when object in not colliding with collider. 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges