> Hello everyone,
>
[quoted text clipped - 6 lines]
> right? Because later we want to limit the zoom and the user shoudn`t be
> able to look beneath the ground.
It's my understanding that the angles and so on cannot be limited -
however, the source code to the orbitbehavior is available online if
you look hard enough (it's in the java3d source repository, but you can
get it via the web, without having to configure CVS), so you should be
able to download that and create a child class that is modified to your
requirements.
> The other thing is an arrow, which we want to use for the drive. The
> user should rotate it around one axis to set the direction. And the
[quoted text clipped - 5 lines]
> size, it does what its name says, it zooms. So the arrow gets nearer to
> the user...
You will indeed have to program your own behaviour. How you go about
doing it depends on what method of interaction you require - if it's
using the mouse, then you need to create a behaviour that reacts to
mouse inputs such as button press, button up, drag, and so on. There
are a few tutorials that will show you how to do this, but essentially
you'll want the AWTEventListener of the behaviour to alter the size of
the arrow object by calling a method on the arrow object.
-sanbikinoraion
marmu - 09 Jan 2007 12:39 GMT
Hi,
the behaviors for the arrow are done. Now I got to get the altered
OrbitBehavior to work.
But I`ll start today, so I cannot tell you anything right now. I`m a
little bit afraid of writing my own OrbitBehavior. The other beahviors
took so long. I only have 3 weeks left and there are several other
things to do, as always ;)
Thanks a lot for your help. I solved the arrow thing by myself and
learned a lot. I hope to suceed in writing my OrbitBehavior. If you got
any hints on how and where to set some limits I would really appreciate
your comment.
Cheers
sanbikinoraion schrieb:
> > Hello everyone,
> >
[quoted text clipped - 33 lines]
>
> -sanbikinoraion
sanbikinoraion - 12 Jan 2007 13:35 GMT
I'm afraid I've never looked at the source for orbitbehavior. I suspect
that the angle modification will be made in the processAWTEvent
function, but judging by the vast number of things that must also
happen in that method, it may be a bit of a chore to find exactly the
right place!
> Hi,
>
[quoted text clipped - 51 lines]
> >
> > -sanbikinoraion