This post has 2 related questions.
- This question is not only related to rotationThrust, but any variable related to a created method.
When he used rotationThrust in the lecture video, he listed it as a variable, which is fine and dandy. However, he removed rotationThrust from the transform.Rotate(Vector3.forward * rotationThrust * Time.deltaTime); and replaced it with transform.Rotate(Vector3.forward * rotationThisFrame * Time.deltaTime);
Since he created the method ApplyRotation(); BEFORE replacing rotationThrust with rotationThisFrame in:
transform.Rotate(Vector3.forward * rotationThisFrame * Time.deltaTime);
does that mean that the newly created method of ApplyRotation(); still has:
transform.Rotate(Vector3.forward * rotationThrust * Time.deltaTime);
in the method created? or does the method created automatically update to have the rotationThisFrame in it?
I ask this because in many programs I have worked in outside of coding, updating the information in the method changes the method.
- He uses these terms such as mainThrust, rotationThisFrame, and other terms in the course that I cannot find when I search for them on the Unity Docs. Are these above terms official code terms, or is he creating these terms himself?
example: in theory, could I instead name the term mainThrust to mainThruster if I so chose? I ask because when in the future I go to look up code on Unity Docs, I want to make sure I’m entering the correct terms so that the code works properly and I can also understand what is written.