Modifiers
Something that might make coding easier is to find shortcuts to represent code to set things such as coordinates where one coordinate is a 1 or -1. Then, to change the one value, multiply the variable or shortcut by a modifier.
We'll do this often with a speed
variable in different class activities.
Here are the 3D shortcuts for Unity:
Shortcut | Equivalent |
|
|
|
|
|
|
|
|
|
|
|
|
These can be multiplied and divided as an easy way to adjust the value on just one axis.
Last updated