1
Support / Multiple identifiable colliders for single sprite - Islands?
« on: April 20, 2012, 03:01:45 am »
I'm trying to figure out if I'm able to create multiple colliders that I can reference for different functionality on a single sprite. Here's what I'm trying to accomplish:
I have a single background that I want to interact with.
Exit Zones-I will have multiple polygon colliders that will trigger an "exit" from the scene
Click Zones-I need multiple polygon colliders that I'd like to register as "clickable" (raycast)
Move/Non-Move Zones-I need multiple polygon colliders that will act "no move zones"
So long story short, I need to be able to reference the collider by index or name so I know what type it is, etc.
I am able to do this outside 2dToolkit but I saw that I can add multiple collider areas using the "Island" feature in the sprite collection editor and wondered if 2dToolkit already gave me some of this functionality?
I am unable to find any discussion or documentation on the Island feature there so I'm guessing it is a new feature? Can someone help me out with what this is for?
I have a single background that I want to interact with.
Exit Zones-I will have multiple polygon colliders that will trigger an "exit" from the scene
Click Zones-I need multiple polygon colliders that I'd like to register as "clickable" (raycast)
Move/Non-Move Zones-I need multiple polygon colliders that will act "no move zones"
So long story short, I need to be able to reference the collider by index or name so I know what type it is, etc.
I am able to do this outside 2dToolkit but I saw that I can add multiple collider areas using the "Island" feature in the sprite collection editor and wondered if 2dToolkit already gave me some of this functionality?
I am unable to find any discussion or documentation on the Island feature there so I'm guessing it is a new feature? Can someone help me out with what this is for?