x


Clickk to Move - Bridges?

Hi Guys,

I have written a click to move script, which works great. I have set the character to always be grounded to the current terrain height. But for the life of me i cannot work out how to have the character walk across a bridge (as ive stuck the transform on the terrain height). If i remove the stuck to terrain height the character will "fly" across hills etc. Any help on this would be greatly appreciated, thanks :)

more ▼

asked Mar 10 '12 at 05:37 PM

Kingi gravatar image

Kingi
1 1 1 1

We need more information about how you move that character. Character controller, addforce, translate ?

Mar 10 '12 at 06:17 PM Berenger

Thanks for your help :). I am using transform.Translate, I did use a character controller but it appeared to move the character really slowly down hill!

Mar 10 '12 at 06:34 PM Kingi
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I guess it's worth an answer after all :

You should use character controller if there is physic involved (gravity, obstacles, slopes etc). For the speed on slopes, play around with "slope speed multiplier" of character motor. the x value of the curves represent the angle of the slope.

more ▼

answered Mar 10 '12 at 07:22 PM

Berenger gravatar image

Berenger
11k 12 19 53

Thanks For Your Help :)

Mar 10 '12 at 07:25 PM Kingi
(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:

x1474
x1367
x150

asked: Mar 10 '12 at 05:37 PM

Seen: 511 times

Last Updated: Mar 10 '12 at 07:25 PM