Assigning meshes to arrays

Blitz3D Forums/Blitz3D Programming/Assigning meshes to arrays

Nope. I sometimes uses arrays like this too. Some ppl are dead set against it though. Whatever way works really. I sometimes do...

Dim Sphere(100,2)


the last dimension - 0 = X coord 1 = Y coord 2 = Z coord. 3 = entity

To make it easier, you can set up global variables to plug in, so you don't need to remember number


Global X = 0
Global Y = 1
Global Z = 2
Global Ent = 3

Dim Sphere(100,3)

Sphere(5,Ent) = CreateSphere()
Sphere(5,X) = 10
Sphere(5,Y) = 20
Sphere(5,Z) = 10