Coder’s Ghetto Dictionary (work in progress):
-
//var = setting the variable
-
//moveHoriz = constant value = variable
-
//: = ?
-
//float = something to do with math?
-
//= = normal math ‘=’
-
//Input.? = expecting an external value to be returned from user [like a button push]
-
//?.GetAxis = Returns the value of the virtual axis identified by axisName
-
//?.GetAxis (“Vertical”) = Within Unity, Vertical is defined as (up/down,w/s) under the string or name vertical.
-
//string = word, put it in “ “
-
//if = an if statement, expecting a true/false statement
-
//if (_) is the value that returns true/false
-
//Mathf.? = A collection of common math functions.
-
//?.Abs = Returns the absolute value of ( )
-
//transform.? = calling the change class to do something to object
-
//transform.position = modifying the location of object in space
-
//+= means x+=y means x=x+y
- //transform.position += Vector3.right * moveHoriz * Time.deltaTime;
-
//transform.position = transform.position + Vector3.right * moveHoriz * Time.deltaTime;
-
//!= = not equal.
-
//Vector3 = class stating a position in space (list of V3s)
-
//Vector3.right = Positional value in space on an axis (1,0,0)
-
//Time.? = A class covering virtual time
-
//Time.deltaTime = A factor of time not based on CPU, but relative time.