Why do you need to record the X,Y,Z values when the entity structure already holds these?
Just dim Spheres, CreateSphere(), then to get it's coordinates use EntityX#(sphere(n)) or whatever the functions are. Otherwise your duplicating information.
Just dim Spheres, CreateSphere(), then to get it's coordinates use EntityX#(sphere(n)) or whatever the functions are. Otherwise your duplicating information.