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 kamleshDON · Mar 22, 2013 at 03:30 PM ·

spiral path generation in unity

i am doing one project in unity. and i want to make path which should be automatically generate in spiral view . first of all i will provide the initial point and also ending point and finally based these point it should be able to generate the path in 3D view.

please anyone help me as soon as possible thanks in advance ........

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 robertbu · Mar 22, 2013 at 03:57 PM 3
Share

What do you mean by "path" and what is a "spiral view?" Are you talking about an array of Vector3s or are you talking about something on a terrain?

avatar image kamleshDON · Mar 23, 2013 at 05:31 AM 0
Share

actually i want to generate the path in 3D .it may be whatever terrain or Vector3s it's not matter. actually i am developing a car racing game . and in this game i want to generate the random path in 3d view . one thing more please tell me the answer with code . because i am beginner . thanks to all in advance

avatar image AlucardJay · Mar 23, 2013 at 05:47 AM 0
Share

The best methods are given by Graham in your other question : http://answers.unity3d.com/questions/422346/how-to-generate-the-path-or-road-in-unity-3d.html

Honestly this is not the type of project you should be doing if you are just starting out. Your project requires an understanding of many different things : random, vectors, instantiating vs pooling, arrays, colliders, etc etc. You should really start with something small, then work up. The algorythm for provide the initial point and also ending point and finally based these point it should be able to generate the path in 3D view is going to be complex ....

avatar image kamleshDON · Mar 23, 2013 at 08:41 AM 0
Share

ok i got this . mean i will go step by step . but i have one more problem . problem is that i want to draw a spiral equation in 2d view . how can i draw this spiral. please help me out as soon as possible . thanks a lot in advance .....

1 Reply

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

Answer by sparkzbarca · Mar 23, 2013 at 09:00 AM

use rotateAround rotate around the center point

as you approach 1/2 pi radians

slerp from where you are to RotateAround result + (postion - point)

you rotate around a point while slowly increasing your distance from the object

the result will be a spiral pattern as long as you control for the speed at which you slerp

Comment
Add comment · Show 2 · 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 kamleshDON · Mar 23, 2013 at 09:47 AM 0
Share

hello my friend sparkzbarca can u tell me the code whatever u explain right now . problem is that i am new in unity . and i am not able to write the code for it . so please help me out .thanks in advance...

avatar image sparkzbarca · Mar 23, 2013 at 11:01 AM 1
Share

this isn't about being new to unity this is about knowing how to code. Do you know a program$$anonymous$$g language?

you can rotate around with

transform.RotateAround(point,axis,angle)

you can slerp with vector3.slerp(start,end,time.deltatime)

i can write it it's not that hard but if you cant program there isnt much point. You cant program a game if you cant program

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

12 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

Related Questions

Cloud recognition in Vuforia 0 Answers

About the object disappeared, and computing 0 Answers

Use WII Balance to control GUI 0 Answers

Terrain Procedural Texturing based on height? 4 Answers

How can I show loading process during load resources? 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