controlling 3d objects

hi, i’m currently trying to write a simulation program using opengl.

one of my objectives is to be able to control
the object movement within the environment while having the ability to switch to controlling other objects within the environment when necessary

so far, i’ve also seen a sample program that seems to make use of Java applets to perform the task.

but i’ve not found anything that on this matter. could someone enlighten me on this?

thanks in advance

Here is a quick bit of info:

You need a `current’ object. When you press some given key (say TAB), you change the current object to the next object. If you have an array of objects, its simply a case of incrementing a current object variable - whatever - all your movement code should operate on the current object, rather an any given specific object.

Hope this helps.