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 /
This question was closed Mar 25, 2014 at 07:31 PM by robertbu for the following reason:

Design question, multiple issues

avatar image
0
Question by neelama · Mar 25, 2014 at 07:15 PM · touchlinerendererfollowpathcurve

I want to draw a line(curved) as finger moves on screen after that move a instantited gameobject/rigidbody following that path. 2D

My game is in 2D. Line can be any random line or curve. (have a start and end point)

I read that touch need to be converted from 2D screen to 3D world point using the function ScreentoWorldPoint function. Is this necessary because my line have constant Z axis.

I want object to follow the path only after the user lifts up the finger (smthg OntouchEXit).

Is it necessary to save the path? or can make one object follow the other after a while.

How to go about this..

Comment
Add comment · Show 2
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 · Mar 25, 2014 at 07:31 PM 0
Share

Design question need to be asked on Unity Forums. Unity Answers is for single, specific issues, and you have multiple, general issues here. You need to break your problem down into individual pieces and research each. A few comments:

  • Yes the points have to be converted to world space.

  • You need to explore Generic Lists (lots of UA posts on the subject)

  • You need to explore how to collect positions as a finger moves. There are some UA answers on this topic as well.

  • Depending on whether you want a smoothed walk or a precise walk, you need to explore moving between waypoints or walking splines. Lots of posts on each on UA.

avatar image neelama · Mar 25, 2014 at 07:43 PM 0
Share

Thank you. Apologies. First post, new to Unity. I will explore all the keywords you suggested. Thanks.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

20 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

Related Questions

Need help with physics 1 Answer

Moving rigidbody along spline, and being able to use physics 1 Answer

How draw a path using touch in c# 1 Answer

How to create curvy linerenderers? 1 Answer

How to control an animation by touch position along a path? 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