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 mjalali1996 · Aug 04, 2014 at 10:05 AM · 2dinputtouchinput.touch

how can i touch the fast objects ?

Hi everyone , i have a problem in my game

in my game there are some object which move with top speed and i should press it

Everything is good but when their speed rises , i can not touch it , my game like piano tile

Forgive me if there are mistakes in my sentence , Because i'm from Afghanistan

Comment
Add comment · Show 4
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 meat5000 ♦ · Aug 04, 2014 at 10:10 AM 1
Share

You could cheat and have a static button linked to the speedy object, which only appears when its on screen. The button may appear for a short period of time so you still need to be fast but at least you wouldn't need to track the object all over the screen.

avatar image Razouille · Aug 04, 2014 at 10:13 AM 0
Share

You can check the touch position with your moving object between last and current frame (keep a local var to compare them)

avatar image mjalali1996 · Aug 05, 2014 at 07:21 AM 0
Share

how can i do this?

avatar image robertbu · Aug 05, 2014 at 07:40 AM 0
Share

This question has come up before. Create a sphere or other game object and write a scrip to have it track the mouse in front of other objects. As you play faster, see the sphere is at the right place with respect to the finger. If not, your problem is likely hardware lag. If I remember correctly from the old question, the final solution was to have collider trail behind the object by a frame or two. If moving slowly, the collider would be at nearly the same location, but when moving quickly it would trail more and therefore compensate for the hardware lag.

0 Replies

· Add your reply
  • Sort: 

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Drag an object to touch position(Problem) 1 Answer

2D UI Button When Touched Image 0 Answers

TouchPhase not firing correctly - Android 3 Answers

Touch drag 2D object in x axis 1 Answer

Problem with multi-touch from android 1 Answer


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