rArrays needed to keep track of multiple objects?

Dec 10, 2009 at 6:52am
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 Dec 10, 2009 at 6:59am
Dec 10, 2009 at 1:10pm
A list may be better than an array: http://www.cplusplus.com/reference/stl/list/
Dec 11, 2009 at 12:15am
Yea, i asked around today. Thanks anyways.
Topic archived. No new replies allowed.