When we declare a variable, we are creating a new variable and assigning it a value. While the n in the math equation will always equal 3, the script can change the variables when needed. However, it cannot have spaces.Īnother difference is that variables in coding rarely stay the same. They can have uppercase letters, numbers, and even underscores. One difference is that our variable names don't have to be single lowercase letters. If you were to replace the n with the number 3, the equation would still be true.Ī variable is similar in coding, but with three main differences. The letter n is used to represent the number 3. What is a variable in math? If you aren't familiar with this concept, the n in the below math statement is a variable. You should have already have a basic idea on how to make a path if you have read the Newbie's guide, but if you haven't, this section will explain it briefly.Ĭreate a part and a script into the Workspace. If the checkbox is turned on, the object will not be affected by gravity.īut how do you set a property using a script? Well. Anchored: whether or not the object is subject to change position.CanCollide: whether or not other objects will pass through the object if the checkbox is flicked off, objects could pass through it uninterrupted.Name: the name that is attributed to the brick.You must give three angles, each ranging from 0 to 360. Orientation: allows you to rotate the brick along all six degrees of freedom.You must enter three numbers, one for each axis. Position: the location of the brick, using coordinates.You must enter three numbers, one for length, one for width and one for height. Size: the dimensions of the objects in studs.Transparency: changes how see-through the brick is.The main properties a beginner should know are: In the properties window are all the properties of the part, and you can change these properties by typing in text, entering numbers, or ticking a checkbox. If you haven't already, go to the View tab and open up the Properties window. A property is a characteristic of an object that you can change using the Properties window. It is positioned a little bit above the baseplate.It is four studs long, two studs wide and one stud tall.It is a little transparent (see-through).How would you describe it? There are many things you could say about it, like:
0 Comments
Leave a Reply. |