⭐ LateUpdate(): ☑️ This is called after each Update() method call ☑️This is useful to ensure all Update() related calculations are completed, and then any other dependent calculations can be called. For example, if you need to integrate a third-person camera to follow a character, then it should be implemented inside LateUpdate() method. This ensures that the camera will track the character after its movement
Introduction to C# in Unity3D #2: Scripts! Scripts! Scripts! 📑
📑 In Unity3D you will hear the word script a lot!’ 📑To create a script: Assets < C# < Script or Right click in the Assets folder < Create and < C# Script 📑 Script names should be in Pascal case. PascalCase is a naming convention in which the first letter of each word in a compound word is capitalized. For example: 📑Script names should
Unity3D Scripting API # 5: FixedUpdate() ☑️
⭐ FixedUpdate(): ☑️ Recap: Update used to determine the state of a game object in the next frame and thereon continuously ☑️ Called continuously after 0.02 seconds or whatever time interval that you choose. Unity’s fixed timestep defaults to 0.02. This means FixedUpdate() is being called after every 0.02 seconds ☑️ Tied in to the physics engine. Contains physics based updates ☑️ This method is
Introduction to C# in Unity3D #1: 💻What? Why? How
💻It is an object-oriented programming language created by Microsoft 💻 Object-oriented programming (OOP) is about creating objects that contain both data and methods. 💻It is easy to learn and simple to use 💻 Good community Support 💻Good for making games, VR apps, AR apps, Your C# code will interface with the game engine via the Unity3D Scripting API. The Unity3D scripting API exposes functions that
Unity3D Scripting API #4 : Update() ☑️
⭐ Update(): ☑️ This method is called continuously every frame ☑️ The Update() method is good for receiving inputs from the user continuously. Anything that needs to change or be adjusted regularly will be written inside the Update() method for example⏱️ Timers. ☑️ Also used for non-physics based movement for example non-physics based character controller in 2D games ☑️ Update() depends on the game’s refresh
Unity3D Scripting API #3 – Start() 🏁
💚MonoBehaviour💚 is the base class from which every Unity script derives. Any Unity3D script that you create will extend from the MonoBehaviour class. The MonoBehaviour class will execute events in a pre-determined order. 🍱Method: A method is a function that performs a specific task. So these methods are performing a specific function. For example whatever code is written inside the Start() will execute on the
VR Lessons #2: Grab items in Virtual Reality
Here is another short tutorial from my VR lesson series here This tutorial uses the new input system to create an interactor. An XR interactor is an object in a scene that can select or move another object in the scene. For example the pointer or your hands in VR. Check out all the full tutorial with steps here
Playing with MRTK
Playing around with MRTK here It’s a nice succinct tutorial on setting up an XR project and manipulating objects with ObjectManipulator
Deep & shallow copying in JavaScript – part 3
Copying objects with deep copy The JSON.stringify and JSON.parse methods can be used to deep copy an object. In a deep copy, the source and target objects have different memory addresses and are not connected at all. The JSON.stringify() method will take a JavaScript object as an argument and transform it into a string. Then the JSON.parse() method will parse the JavaScript string and return
#VR FOR NEWBIES : Lesson 1
Introduction Super excited to be starting a new series on VR for Newbies. This series will be aimed at Newbies! There world of VR dev right now is a bit scattered and information not consistent as VR headsets aren’t standardized. This series will be for ABSOLUTE newbies in order to break the barrier into VR by presenting information in a more cohesive and organized way.