playMaker

Author Topic: Get multiple children to move one object at a time.  (Read 1953 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Get multiple children to move one object at a time.
« on: February 11, 2015, 05:31:32 AM »
I have a object acting as a mechanical hand dragging objects from one place to another. I thought about using Get Child but it's limited to one object. Isn't there an alternative to using Get Child? Or would the only way to solve this is by using ArrayList?

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Get multiple children to move one object at a time.
« Reply #1 on: February 11, 2015, 05:49:31 AM »
you may also group your object to one and move the parent of all subojects you need.

it means, you'll have to attach your gameobjects to 1 parent, and then move the parent.

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Get multiple children to move one object at a time.
« Reply #2 on: February 11, 2015, 05:53:08 AM »
you may also group your object to one and move the parent of all subojects you need.

it means, you'll have to attach your gameobjects to 1 parent, and then move the parent.

What would that mean for two hands?

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Get multiple children to move one object at a time.
« Reply #3 on: February 11, 2015, 06:35:37 PM »
Also forgot to mention all three objects are parented to one empty object. Heres a picture as reference.


https://db.tt/AlLL2QwE