playMaker

Author Topic: How to Translate Multiple Objects  (Read 1758 times)

jgalvezpa

  • Junior Playmaker
  • **
  • Posts: 58
How to Translate Multiple Objects
« on: December 14, 2013, 01:51:12 AM »
Hello i make a spawner that loop 10 game objects in random positions then i want them to translate them all, but only the fsm only translate 1 game object, how can i translate them all?

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: How to Translate Multiple Objects
« Reply #1 on: December 14, 2013, 12:38:02 PM »
you could make a template attached to each Object translating them or a Loop with next child to itterate a hierarchy translating each child object a little in a loop.

cheers
Peter

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to Translate Multiple Objects
« Reply #2 on: December 14, 2013, 12:44:36 PM »
Hi,

 If these objects can be made as prefab, then it would be trivial.

I would actually not recommand using a loop to translate several objects, this will create performane issues if you start increasing the number of objects you want to translate. using a template or a prefab is much better I feel.

 also, you can perfectly parent these gameobjects to a dummy, translate that dummy and unparent when done ( not necessarly, they could always remain parented, that doesn't hurt), that's also very efficient.

bye,

 Jean