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 highpockets · Feb 01, 2014 at 07:46 AM · iphonetouchtouchscreentouches

Not getting a response when a touch doesn't move with TKtouchkit

Hey guys,

I'm using the TKTouchKit at the moment by prime31, which is great. I made my own recognizer that handles long touches as it aids in moving a character in a scroller environment by means of translating the touch position into world position and the camera follows the character accordingly. One thing that is driving me nuts, is this incredibly noticeable loss of touch position unless my finger is constantly moving. I translate the touch coordinates into world coordinates for every touch phase and while it is usually super smooth, whenever I keep my finger in one place on my iPhone 5S and 4, the character stops at the world position given by the touch position when the finger stopped moving even after the camera scrolls, which in turn should give a new coordinate. This is cured when I just slightly move my finger, but it is quite annoying when it happens because the character should continuously follow the touch position as the camera scrolls. On my mac, this is not the case, so it seems as though the mouse cursor events are handled differently.

Is there a way around this? It seems as though touchesMoved is taken quite literally, but not on the mac!! Is there a way to include something like touchesStagnent?? I'm sure this is a simple work around, but I'm not the most experienced programmer..

Thanks in advance,

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by highpockets · Feb 02, 2014 at 09:43 PM

I solved this. I had ScreenToWorldPoint in the recognizer and since it was not recognizing the touch while my finger was still, the event never fired and therefore the position didn't change until I moved my finger. I have now taken ScreenToWorldPoint out of the recognizer and placed it inside my movement script and it works as expected.

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

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

Related Questions

Project works fine in Editor(Remote) but not on iOS 0 Answers

Detect touch location? 1 Answer

How can I tell if the device I am on supports touch? 4 Answers

Please help. Attempting touch controls but I cant figure out what I'm doing wrong 3 Answers

Separate functions for separate touches 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