moving more than one 3d object using jit.gl.handle
Hi!
I'm making a 3D interface in a window with a cube and a sphere inside. I would like to move these two figures using the the jit.gl.handle. The problem is that the handle function controls the movement of only one object.
I don't know how to solve this.
Any ideas?
Thanks
perhaps connecting the jit.gl.handle to both objects?
I've already tried your solution but it doesn't work.
Thank you anyway
I don't explained my problem clearly.
I want to control the move of a single object separately.
If i move one object, the other one must stay fixed.
Do you have any suggestions?
just connect ji.gl.handle to that object :)
And how do you control the other one? Let's say first you want to rotate the left hand sphere (without rotating the right hand one) and afterwards you want to rotate the right hand sphere (without rotating the left hand one)...?
check autohandle patch in jit.gl.handle :)
I solved the problem using a gswitch2. I've connetcted the jit.gl.handle object to the gswitch2 and i've created two buttons to choose which object i want to move. And then in this way.. it works!!!
I'm interested by that for a dynamic number of objects.
In my case, I cannot use gswitch2 solution because there is a huge number of objects instantiated using Javascript.
would I have to dynamically create & connect one jit.gl.handle ... per object ...?? sounds crazy.