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 niraj · Apr 10, 2014 at 05:49 AM ·

Simultaneous Multi-Touch Problem in Truck Parking Like Game

Hello Developers,

I am developing a Truck parking like game where we can simulate a truck using following touch-Inputs:

  1. Onscreen Steering Wheel

  2. Accelerate Button

  3. Brake Button

  4. Front Gear Button

  5. Reverse Gear Button

I have developed everything, as given below in snapshot(like this):

alt text

Now all my steering wheel and other inputs are working independently fine, but when i try to apply brakes or acclerate the car using onscreen right buttons while holding the Steering wheel with another touch it's not working.

Please give me a way, how should i make it work? Nowhere i found solution regarding this so if you can help me with sample code or tutorial then it will be fine rather than other forum links.

Thank You Very Much for your Help

driving-simulator-3d-5-4-s-307x512.jpg (33.3 kB)
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 doska · Apr 10, 2014 at 06:01 AM 1
Share

I think it's becouse for every control you use separate touch input. So, if one works - others didn't. If it so, you should use one input control for all. Here is nice example how it could be done.

avatar image niraj · Apr 10, 2014 at 12:30 PM 0
Share

Thank you very much doska, the links looks like solution to my problem. However if i get any problem i will get back to you, I am going to check the solution. Thank you very much again.

avatar image niraj · Apr 10, 2014 at 01:53 PM 0
Share

what if i have two touch scripts attached to the same gameobject.one script for rotating wheel and other for managing other touch buttons?

avatar image niraj · Apr 10, 2014 at 02:23 PM 0
Share

Just want to say, i have merged two scripts and now multi-touch is working like crazy. It means having multiple scripts creates some sort of problem. $$anonymous$$erging them together, if possible will solve the problem. However i am curious if we can still achieve same result having multiple touch scripts.

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

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

Related Questions

what is vector3 in unity, and why we used it... 3 Answers

How to add MoPub Interstitial ads between levels? 0 Answers

Object Avoidance AI Unitysteer 1 Answer

How can I add time to a timer on an object collision? 1 Answer

Wait before being able to press button again 2 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