rArrays needed to keep track of multiple objects?

So i am doing a lab and i am wondering if i need an array to keep track of all the objects?

Say i am drawing cubes every time i click a button. It has gravity, velocity vector so it looks like a simple physics falling cube thing.


Would i need an array to keep track of each object after i click? or is there a way to draw so many and still have it work like that?

Thank you.
Last edited on
A list may be better than an array: http://www.cplusplus.com/reference/stl/list/
Yea, i asked around today. Thanks anyways.
Topic archived. No new replies allowed.