Character Run Speed Stacking?

I have no idea what “Character Run Speed Stacking” is.

Normalizing a vector has a very specific mathematical meaning, completely unrelated to Unity.

Normalizing a vector makes the magnitude of the vector be 1.0f. That’s all.

If you’re just implementing run vs walk, there’s ten billion tutorials and example code blobs out there. Here’s one:

The basics are something like:

  • assume a walk speed by setting the chosenSpeed to walk speed
  • check if RUN is in effect, if so, set the chosenSpeed to run speed
  • any other things like “extra boots of speed” added onto chosenSpeed

Now use chosenSpeed to perform the movement.

Otherwise, if you’d care to clarify further:

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

This is the bare minimum of information to report:

  • what you want
  • what you tried
  • what you expected to happen
  • what actually happened, log output, variable values, and especially any errors you see
  • links to documentation you used to cross-check your work (CRITICAL!!!)

The purpose of YOU providing links is to make our job easier, while simultaneously showing us that you actually put effort into the process. If you haven’t put effort into finding the documentation, why should we bother putting effort into replying?

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: Using code tags properly

  • Do not TALK about code without posting it.
  • Do NOT post unformatted code.
  • Do NOT retype code. Use copy/paste properly using code tags.
  • Do NOT post screenshots of code.
  • Do NOT post photographs of code.
  • Do NOT attach entire scripts to your post.
  • ONLY post the relevant code, and then refer to it in your discussion.