Skip to content

rohangaikwad/Custom-2D-Colliders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Custom 2D Colliders

A set of custom 2D colliders for Unity.

Preview

alt Preview

Colliders included:

  • Bezier Curve Collider 2D
  • Arc Collider 2D
  • Ellipse Collider 2D
  • Rounded Box Collider 2D
  • Capsule Collider 2D
  • Star Collider 2D

Installation:

Method 1:

  • Open your Unity project
  • Go to Assets > Import Package > Custom Package > Browse

alt Select Package

  • Select CustomColliders2D.unitypackage

alt Select Package

  • Select all the files
  • Click on Import

alt ada

Method 2:

  • Simply drag the Custom 2D Colliders folder to your project

Usage

You can add the custom collider scripts to your gameobject in any of the following ways

  • Drag the script from the project window on to the GameObject
  • From the inspector window. Example: Add Component > Physics 2D > Bezier Curves Collider 2D

alt Adding the collider