-
How to Set Up 2D Movement with Rigidbody Collisions in Unity
When creating 2D games in Unity, setting up smooth player movement that respects game world collisions is essential. In this guide, we’ll walk through the process of building a basic 2D character controller that handles movement and rigidbody collision detection using Unity’s physics system. Prerequisites We will also utilize the new Input System package, so…
-
Creating an Animation from Sprite Sheets in Unity
Quick Overview In-Depth Step-by-Step Guide 1. Enable the 2D Sprite Package Before working with sprite sheets, ensure Unity has the necessary tools: 2. Download the Fire Animation Asset For this tutorial, we use a fire animation asset by Brullov, available for free on Itch.io. You can also support the developer by naming your own price.…
-
How to use generics in structs and interfaces in Golang?
Golang 1.18 introduced support for generics, allowing developers to write code that is independent of specific types. This means that functions and types can now be written to work with any set of types. In this article, we’ll explore how to use Golang generics in a struct and with interfaces. Generic function to handle multiple types…