▶️WATCH THIS FIRST
TINKERCAD Recently changed some of the ways we MAKE and USE variables, and requires some knowledge before we proceed.
A variable is like a container. Computers can store 1 object per variable, and it only knows the most recent information assigned to that variable.
Like in Math class, where you can use X or Y to represent variables to solve a problem, coding variables can store any type of number, letter, name, or other single point of information.
In your code blocks, scroll to the variable tools and create separate variables like the example below.
Under the Variable Menu is a LEGACY Menu, go here to CREATE NEW OBJECT and then rename it as Tower for your project.
This now allows you to change the variable to suit the needs of your project.
This can be completed using the "SET" feature where it will begin your code with the value SET at the start and compute changes from that information.
The Orange Command is a A counting loop, or counter-controlled loop, is a loop in which you know beforehand how many times it will be repeated. Among the examples in the last section, the first two were counting loops.
In this case, the counter is the variable X, which counts from 0 through 49—that is, it counts 50 times. 🐱 Computers always start counting from zero.
The variable X in this example is called a counter variable or loop counter. Although it is certainly possible to name the counter variable anything we like, it is customary to use single letters like i, j, and k as loop counters in most coding.
The fundamental feature of a counting loop is that we must know beforehand exactly how many iterations, or cycles, the loop will take.
Experiment with the parameters and variables in this model to see how it affects the final shape and form of the skyscraper. When you are done, export the STL file and load it to Google Classroom. (like you have done on past projects)