Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: wheretheidivides on January 17, 2015, 12:27:10 PM

Title: 2 colliders
Post by: wheretheidivides on January 17, 2015, 12:27:10 PM
I was wondering in playmaker how do you set up 2 colliders on the same object?

Collider 1 is set on the object.  If the player hits it, it'll do stuff and destroy itself.  This is working fine.

Collider 2 I added on a bigger sphere.  The idea would be to check to see if an enemy is inside this bigger sphere before spawning. 

So how do you differeiate the 2?
Title: Re: 2 colliders
Post by: wheretheidivides on January 17, 2015, 02:32:44 PM
I guess one way is create a number of child objects.  each child object would have its own collider and playmaker FSM.  This seems to be a good approach.

So is there a way to have multiple colliders on 1 object and reference each one individually?
Title: Re: 2 colliders
Post by: Lane on January 17, 2015, 03:25:04 PM
http://docs.unity3d.com/Manual/class-Rigidbody.html

Read the section on Colliders and Compound Colliders, I think it will clear up practices for doing stuff like this.

Hopefully it answers your questions, but feel free to reply if it doesn't.