In Unity, a 2D Physics Material (also called Physics Material 2D) is used to define how two 2D objects interact during collisions in the 2D physics engine (Box2D).
Tag: Game Development
Unity in Practice 0012 – Blend Tree in Unity
A Blend Tree is a feature within Unity’s Animator Controller that allows you to smoothly transition between multiple animations based on one or more parameters (like speed, direction, or vertical velocity). It’s ideal for creating fluid and natural character movement.
Unity in Practice 0011 – Player Jump with Ground Check in Unity
To implement a player jump with a condition and ground check in Unity (using C#), you’ll typically use Rigidbody physics and a ground detection method like Physics.Raycast, Collider overlap checks, or Unity’s CharacterController.isGrounded.
Unity in Practice 0010 – Flipping a 2D Character Horizontally in Unity
To fix the left run animation that appears incorrect, you generally don’t need a separate animation for left movement. Instead, use sprite flipping to mirror the existing run animation.
Unity in Practice 0009 – How to Use Sprite Sheets in Unity for 2D Animation and UI
In Unity, a sprite sheet is a single image file that contains multiple smaller graphics (sprites), often used for 2D animation, character states, or tilemaps. It helps improve performance and makes organizing related sprites easier.
Unity in Practice 0008 – Encapsulation and Inspector Access with Unity’s [SerializeField]
In Unity, the [SerializeField] attribute is used to make private fields visible and editable in the Inspector window of the Unity Editor. This allows developers to keep variables encapsulated (i.e., not publicly accessible in code) while still customizing them in the Editor.
Unity in Practice 0007 – Very First Unity C# Code to Move and Jump a 2D Ball
This tutorial walks you through creating a simple Unity project where a 2D ball can move left/right and jump using keyboard input. It’s perfect for beginners who want to learn how to work with physics, input detection, and scripting in Unity.
Unity in Practice 0006 – Very first C# code to demonstrate how to capture input
As outlined in Unity in Practice 0005 – Create C# Script – Wonderful Code See , we created a Ball.cs C# script which allows us to capture keyboard input within the script.
Unity in Practice 0001 – Unity Introduction
Unity is one of the most popular game development engines in the world. It’s used to create 2D, 3D, AR, and VR games and interactive experiences for PCs, mobile phones, consoles, and even the web.