Extracting the bounding box information is useful when you want to make something collide with your character. When you put a 2D character into a 3D scene, you may want to use Physics to make the 2D character collide with the 3D plane.
Colliders were improved to provide several different types of colliders for use in Unity. You can select polygon colliders and box colliders for a more accurate bounding box.
How to set up collisions
- Select your imported character.
- In the inspector, select Add Component > Physics 2D > Box Collider 2D.
- To enable the Physics on the character, go to Add Component > Physics 2D > Rigid Body 2D.
NOTE You can also use 3D physics on the imported files.
You can now adjust the variables and see the results.
Comments
0 comments
Article is closed for comments.