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
0
Question by KarthikRao · Feb 09, 2013 at 07:15 AM · levelsgameplaysimplify

how to make a game easier

Hey guys i am developing a cricket game. The animation and all is working fine. But it is becoming extremely difficult to time the shot accurately. Means the batsman misses every shot.

I tried increasing the size of the collider. Even that doesn't seem to help much.

Please keep in mind i am new to unity and go a little soft. :)

Comment
Add comment · Show 5
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 robertbu · Feb 09, 2013 at 08:11 AM 0
Share

I'm having trouble visualizing the issue. Conceptually I understand, but the actual mechanics are missing. A short video or even a screen shot would be helpful.

avatar image KarthikRao · Feb 09, 2013 at 08:29 AM 0
Share

$$anonymous$$ i have attached the picture of a shot to the right. the bat needs to hit the ball like in baseball.alt text

right shot.jpg (296.7 kB)
avatar image TASNO · Feb 09, 2013 at 08:35 AM 0
Share

That's a cool game you made :D

avatar image GC1983 · Feb 09, 2013 at 08:38 AM 0
Share

But, unfortunately, a picture of it doesnt tell anyone what could be wrong with it.

avatar image GC1983 · Feb 09, 2013 at 08:40 AM 0
Share

Usually, when it comes to collision issues, is either your code or the way you are moving the object. $$anonymous$$oving objects and non moving objects tend to have problems detecting collision depending on how the moving object is coded.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by TASNO · Feb 09, 2013 at 12:21 PM

Maybe you should make the sphere collier on the ball a little bit bigger so the bat would be able to hit it?

TASNO :P

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
avatar image
0

Answer by souperdavecdn · Feb 09, 2013 at 11:52 AM

Couple of tips for troubleshooting moving things/collisions

  1. Slow down time, it's awesome Unity Editor Menu /Edit /Project Settings /Time Change "Time Scale" to something slower than 1 Now run your game and see if things do actually collide

  2. Debugging Aids Attach the script DebugCollision.js (below) to both game objects involved


    // ------ DebugCollision.js  ------ 
    function OnCollisionEnter(collision : Collision) {
        // Displays the names of all objects we are currently touching in this physics frame (in the Debug Console)
        // Multiple contacts can occur simulatenously
        for (var contact : ContactPoint in collision.contacts) {            // Cycle through each point that is contacting another object    
            Debug.Log(this.name + " hit " + contact.otherCollider.name);    // Display the name of this object and the one we hit    
        }
    }
    // ------ DebugCollision.js  ------ 
There could be many other reasons why your game doesn't do what you want it to but try these tips to help identify what is currently happening. I hope this helps you.

Soup.

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

11 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

Related Questions

Simplifying code - similar array names 1 Answer

Change level after ''X'' seconds 2 Answers

Need to alter script to load next level when level is completed 1 Answer

Why do i get error that level is not in build settings when i can see that it is in multiple ways? 2 Answers

Looping scenes by pressing "X" button on PS3 controller 0 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