PDA

View Full Version : controlling 3d objects



beanzrulz
09-15-2002, 06:31 PM
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
bryan

Robbo
09-16-2002, 02:18 AM
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.