- Home /
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?
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
Answer by Eric5h5 · Aug 28, 2010 at 08:03 PM
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.
Your answer
Follow this Question
Related Questions
Render Extremely Far off Objects 1 Answer
Up vectors are really in world space? 1 Answer
Diagonal Raycast - Origin problem 1 Answer
Defining a local spawn offset 1 Answer
camera movement in world space, but when the rotated on y axis 1 Answer