Quantcast
Channel: Answers for "Can I create an array of two Vector3 arrays in C#?"
Browsing all 4 articles
Browse latest View live

Answer by watermy

You can use POO instead. Use a struct to store planet information and then create a array/list of Planet for a SolarSystem and then use a list of solar system. So you easily extends your data. public...

View Article


Answer by Baste

You can simply use two arrays to store the data: Vector3[] planetLocations = new Vector3[50]; Vector3[] planetSizes = new Vector3[50] //Set planet 17 to the position (10, 50, 30), and the size (15, 12,...

View Article


Answer by watermy

You can use POO instead. Use a struct to store planet information and then create a array/list of Planet for a SolarSystem and then use a list of solar system. So you easily extends your data. public...

View Article

Answer by Baste

You can simply use two arrays to store the data: Vector3[] planetLocations = new Vector3[50]; Vector3[] planetSizes = new Vector3[50] //Set planet 17 to the position (10, 50, 30), and the size (15, 12,...

View Article
Browsing all 4 articles
Browse latest View live