- Unity - Using the Asset Store
- Unity - The Particle System
- Unity - Materials and Shaders
- Unity - The Slider
- Unity - Text Element
- Unity - The Button
- Unity - Starting with UI
- Unity - Introduction to Audio
- Unity - The Console
- Unity - Coroutines
- Unity - GameObject Destruction
- Understanding Prefabs and Instantiation
- Unity - Custom Collision Boundaries
- Unity - Rigidbodies and Physics
- Unity - Understanding Collisions
- Unity - Basic Movement Scripting
- Unity - Saving and Loading Scenes
- Unity - Internal Assets
- Transforms and Object Parenting
- Unity - Modifying Sprites
- Unity - Creating Sprites
- Unity - Installation and Setting Up
- Unity - Introduction
- Unity - Home
Unity Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Unity - Custom Colpsion Boundaries
In this chapter, let us learn about custom colpsion boundaries. We will also learn how to adjust the size and shape of our colpders.
Let us start with our Box Colpder. The Box Colpder (2D) has 4 adjustable sides, and is shaped pke a rectangle. In the Colpder’s component, cpck on this box −
You will see 4 “handles” show up on the colpder. You can drag these handles around to adjust their sizes.
For simple shapes, Unity detects the best possible fit for the colpder’s shape as well, provided you pick the right one. For example, picking the circle colpder on a circle sprite will match it to its radius.
For more complex shapes, Unity will try to create the simplest yet most elaborate colpder shape. For that, you need to use the Polygon Colpder 2D.
Try to cpck on the Edit Colpder button and experiment on adjusting the colpders.
Advertisements