lesson
Unity physics systemUnity for Beginners - Animal CrossingYou might hear the word "physics" thrown around a lot in game development, so let's go over what physics means in Unity. In the real world, objects are affected by gravity, friction, collisions, weight etc. Likewise in a game, objects are also affected by the forces of physics.
lesson
Third person movementUnity for Beginners - Animal CrossingIn this module we'll be learning about a few fundamental concepts such as Rigidbody and colliders, which will assist us in making our character move. We'll also learn how to add animations to our character.
lesson
Transform class and component in UnityUnity for Beginners - Animal CrossingThe transform component is attached to every object in Unity. The transform components hold the x, y and z values for the position, rotation and scale properties of an object in respect to the game world co-ordinate system, or the parent object of child components.
lesson
VectorsUnity for Beginners - Animal CrossingUnderstanding vectors is useful before we start making games. A vector is basically a quantity which has a direction. Vectors are useful and are used a lot in Unity. They're used to store the x, y and z values of components such as transform, rotation and scale. We cannot store these values together in a general variable. We need to use vectors for that.
lesson
ClassesUnity for Beginners - Animal CrossingC# is an Object-Oriented Programming language in which the programmer can develop software in modules. This is accomplished through treating data as **objects**. A class is like a blueprint or template of a specific object in which its properties, fields, events and methods are specified.
lesson
FunctionsUnity for Beginners - Animal CrossingA function groups together code statements to perform a specific task. Whenever a function is called, all the code statements inside that function will execute.
lesson
LoopsUnity for Beginners - Animal CrossingYou can execute a statement or block of code multiple times using loops. This is called iteration.
lesson
Conditional statementsUnity for Beginners - Animal CrossingImagine if your code could do different things based on different conditions. Well, it can! Using conditional statements we can control the flow of our programs.
lesson
ArraysUnity for Beginners - Animal CrossingArrays are a collection of values of the same data type. They are extremely useful data structures and help us write more complex code.
lesson
CommentsUnity for Beginners - Animal CrossingComments help to document your code and inform the intent of your code.
lesson
OperatorsUnity for Beginners - Animal CrossingOperators are used to carry out operations on operands. Operands are values or variables on which an operation is carried out.
lesson
Data typesUnity for Beginners - Animal CrossingWe will discuss the data types that will be used in our scripts. First let's understand what we mean by data types. A data type can be defined literally as a *type of value or values*. For example, your age is an integer, and your first name is a type of data composed of a sequence of characters.