x


Space.World and Space.Self don't work

I'm following the tutorial by TornadoTwins and am up to the part where you spin when you are hit. It doesn't work and I think it is to do with the fact that the "Space.World" in the script doesn't highlight:

transform.Rotate(0,tumbleSpeed*Time.deltaTime,0, Space.World); //World Doesn't highlight\ tumbleSpeed = tumbleSpeed-decreaseTime; decreaseTime += decayTime;

what is wrong?

more ▼

asked Aug 28 '10 at 03:33 PM

MonkeyAssassin8 gravatar image

MonkeyAssassin8
271 35 38 43

I don't believe this is your problem. It does exist, regardless of the syntax highlighter missing it.

http://unity3d.com/support/documentation/ScriptReference/Transform.Rotate.html

Aug 28 '10 at 04:26 PM tylo
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Space.World and Space.Self do work, and nothing is wrong with that code in particular. Whether something happens to highlight or not in whatever editor you're using is irrelevant.

more ▼

answered Aug 28 '10 at 08:03 PM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

(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:

x181
x109
x44

asked: Aug 28 '10 at 03:33 PM

Seen: 1764 times

Last Updated: Nov 06 '10 at 05:26 AM