Top Banner
Alternative approach to path construction Andrew Williams http://www.bolton.ac.uk/ staff/adw1
23

Alternative approach to path construction Andrew Williams .

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Alternative approach to path construction Andrew Williams .

Alternative approach to path construction

Andrew Williamshttp://www.bolton.ac.uk/staff/adw1

Page 2: Alternative approach to path construction Andrew Williams .

First construct your track

Page 3: Alternative approach to path construction Andrew Williams .

Next, add a car

It does not matter where it goes - but I would put it on the yellow lines

Page 4: Alternative approach to path construction Andrew Williams .

Now, add a rock

Make sure the car is selected before you add the rock.(So that the rock sits in the same position)

Page 5: Alternative approach to path construction Andrew Williams .

Then, clone your rock

Now there are two rocks

I have moved the new rock forwards

Page 6: Alternative approach to path construction Andrew Williams .

Now clone this second rock

IMPORTANT

You MUST NOT use Clone Insert

Page 7: Alternative approach to path construction Andrew Williams .

Here’s my new rock

Again, I’ve moved it forward a bit and placed it on the yellow line

Page 8: Alternative approach to path construction Andrew Williams .

Here’s one I prepared earlier …

Page 9: Alternative approach to path construction Andrew Williams .

Notes

• They don’t need to be rocks specifically– Any object with geometry and a location will do

• They don’t need to be evenly spaced• One rock must be able to “see” (ie draw an

unobstructed straight line) to its neighbour• The rocks are in order– Hence Clone and not Clone Insert

Page 10: Alternative approach to path construction Andrew Williams .

Now open the properties for the first rock and open up Notepad

Page 11: Alternative approach to path construction Andrew Williams .

Look at the X,Y,Z location in the property window

This bit

Page 12: Alternative approach to path construction Andrew Williams .

What is a path?

• A path is simply a series of locations around the track.– Normally you record the path yourself by driving

round the track– We are going to use the locations of the rocks

• We don’t actually need the middle number– That represents the height above the track but we

want the path on the track, so we enter 0 for that

Page 13: Alternative approach to path construction Andrew Williams .

The three numbers

• We don’t need to include all those decimal places either

• I would suggest that this location can be adequately represented by 0, 0, -4

Page 14: Alternative approach to path construction Andrew Williams .

Enter those numbers in Notepad

Page 15: Alternative approach to path construction Andrew Williams .

Now select the next rock and repeat

That looks like 14, 0, 43 to me

Page 16: Alternative approach to path construction Andrew Williams .

Then grab the next rock

Page 17: Alternative approach to path construction Andrew Williams .

And the next …

Page 18: Alternative approach to path construction Andrew Williams .

Etc

Page 19: Alternative approach to path construction Andrew Williams .

Eventually…

Page 20: Alternative approach to path construction Andrew Williams .

We have created trail of breadcrumbs

Add a path and delete the default nodes (ie on the right-hand side)

Page 21: Alternative approach to path construction Andrew Williams .

Copy-and-paste the stuff from Notepad into that box

Page 22: Alternative approach to path construction Andrew Williams .

Add the other bits and pieces

Page 23: Alternative approach to path construction Andrew Williams .

And the car follows the path

Easy question: Why doesn’t it crash into the rocks?