So far I’ve got this.
GameObject colSphere = GameObject.CreatePrimitive( PrimitiveType.Sphere );
colSphere.transform.position = node_.getGameObjectPosition ();
colSphere.transform.localScale = new Vector3(7.0f,7.0f,7.0f);
I tried this code to apply a Rigidbody to my object but it won’t work because there is no rigidbody to access.
colSphere.transform.GetComponent<Rigidbody>().enable = true;