playMaker

Author Topic: 2 colliders  (Read 1588 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
2 colliders
« 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?

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Re: 2 colliders
« Reply #1 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?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: 2 colliders
« Reply #2 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D