I’m trying to build a wood wheel so dynamically so that it can have any number of sides on it. I have the function built to dynamically add the cubes of the object; the difficult part is rotating them all as a group. I want to be able to add cubes to another object so that they can be rotated simply by using a rotate function on the original object. On top of this, I would like to tie a script into the new object. Thank you in advance.
P.S.: I’ll probably make this its own topic but how do you drag to rotate?
http://unity3d.com/support/documentation/ScriptReference/Transform-parent.html
Or just drag the child object(s) onto a parent object in the editor
Set the local rotation (or Euler angles) AFTER adding them to the parent