public Vector3 CENTER(object[] args)
{
// identical to TOP for now
Vector3 outValue = Vector3.zero;
if (args [0] is GameObject) {
GameObject obj = ((GameObject)args[0]);
Renderer[] renderers = obj.GetComponentsInChildren<Renderer>();
Bounds bounds = Helper.GetObjectWorldSize(obj);
Debug.Log("center: " + bounds.max.y);
//Debug.Log (bounds.ToString());
//Debug.Log (obj.transform.position.ToString());
outValue = new Vector3(bounds.center.x,bounds.max.y,bounds.center.z);
}
return outValue;
}