Hi,
I`m storing info in a list which I`ve written:
List<float> mapList = new List<float>();I`m storing mapList[x] = `ModelName`, mapList[x +1] = `ModelpositionX`, mapList[x +2] = `ModelpositionZ` amongst others.
..and would like to.
DrawModel(
mapList[x], Matrix.CreateTranslation(mapList[x +1], 0, mapList[x +2]);Which gives the error: Error 2 Cannot convert type 'float' to 'Microsoft.Xna.Framework.Graphics.Model' : for mapList[x] above.
Is there anyway I can convert mapList[x] so its accepted
I`ve only just starting with lists and arrays, which one would be better for the type of thing I`m doing above
Any information on any of the above would be great. I`m off to read up some more. Thanks in advance.
-Daz.