-This is how specify positions in 3D space
-Creates a new Vector3 object
-First number is the x coordinate
-Second number is the y coordinate
-Third number is the z coordinate
Quaternions
-How Unity handles 3D rotations
-Better for simulations than Euler angles
-Unity handles all the complicated math
Comments
-Great way to write programming notes to yourself and others
-Also useful for saving code for later reference
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
public GameObject objectToCreate;
// Use this for initialization
void Start () {
// make an object
// Object.Instantiate(objectToCreate, new Vector3(2,4,6), Outereign.identity);
for (int i = 0; i < 1000; i++){
Object.Instantiate(objectToCreate, new Vector3(i,4,6), Outereign.identity);
}
}
// Update is called once per frame
void Update () {
}
}