x


Randomly generated content?

I'm really new to unity - hardly touched the program. I was just wondering if there was a way to randomly generate content? Specifically a path (audiosurf style http://www.youtube.com/watch?v=A71ZJzqMm-k) If there is a way to do this - how would i go around it?

Cheers in advance.

more ▼

asked Apr 18 '12 at 02:43 PM

therealjackwalden gravatar image

therealjackwalden
0 2 5 6

where you refering to a autmantic path that moves the ship to cllide with the colored blocks?

Apr 18 '12 at 02:49 PM bodec

Not really, i want the player to have control over the ship to move across the path.

Apr 18 '12 at 02:54 PM therealjackwalden

Do you just want the blocks to be placed randomly?

Apr 18 '12 at 03:36 PM Lttldude

I dont really want the blocks, i just want the path and the ability to run an moveable object horizontally across the path.

Apr 18 '12 at 03:42 PM therealjackwalden
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Sounds like you want more than to just randomly generate a path. A path is just a collection of points (Vector3s), which you can easily generate randomly in any programming language. Are you wanting to recreate what you see in that video? If so, you should look into procedural mesh generation - there's an example on the Unity website that shows you how to extrude a shape along a path. You can also look into iTween, which is a free library that allows you to create a smooth curve along a series of points.

more ▼

answered Apr 18 '12 at 03:34 PM

Julien.Lynge gravatar image

Julien.Lynge
7.4k 20 25 51

I'll give it a look mate, cheers

Apr 18 '12 at 03:43 PM therealjackwalden
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x574
x93
x19

asked: Apr 18 '12 at 02:43 PM

Seen: 758 times

Last Updated: Apr 18 '12 at 03:43 PM