Author Topic: Collision on buttons with dragobject attached?:  (Read 2185 times)

J450NP13

  • Guest
Collision on buttons with dragobject attached?:
« on: November 26, 2013, 08:52:02 AM »
I have some buttons using NGUI and I have the object drag script attached to them to be able to drag them around.  They have their own colliders attached as well obviously.

Is there a way to make them collide with other buttons so they do not overlap each other.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Collision on buttons with dragobject attached?:
« Reply #1 on: November 26, 2013, 11:17:25 AM »
Technically, yes... but you have to switch their colliders to not be triggers, and move them using physics. This involves adding rigidbodies to them, and moving the rigidbody.

J450NP13

  • Guest
Re: Collision on buttons with dragobject attached?:
« Reply #2 on: November 26, 2013, 11:39:41 AM »
Would that be the proper way to go about this?  Am I going to get any crazy rigidbody movement?