Hi Richie,

Andreas is wright. In principle you have to write your own behavior
class. I did this some time ago, but I am not able to place the code
here. I just summarize what you
have to do in a few words.

In my environment I am moving the viewing platform position of the
viewing
platform. The behavior - before terminating the processStimulus() -
should check
(somehow) your constraint to the platform position and, if the
constraint is violated, change the position to a valid state.

Thats it, basically.

I have built my own behavior architecture and therefore my behaviors are

"contrainable"; meaning that you can add constraining instances (having
a common
interface) to every behavior.

After the processStimulus(..) has reached it's end, I check all
constraints attached to
the specific behavior.

I implemented a plane constraint that restricts the platfrom position to
one halfspace.
Then I easily stuck some plane constrains together on my navigation
behavior and the user was not able to leave the plane defined volume.

Thinking shortly over your approach:
its possible to de-/activate behaviors by their activation bounds, but
you would need
many different behavior instances, that are restricted to move in one
direction.
Lets say a NavigateForward and a NavigateBackward behavior. Then you
would
be restricted to the volume where the activation bounds overlap.


> HI all!i am asking this question again, so if anybody can answer it
> for me, it would save a lot of time and energy on my side.thankx so
> much in advancethe question is: I am using the KeyNavigation
> behaviour, but want it to be restricted after some coordinates in the
> Z axis so that one doesnt go too far..does the boundingsphere play the
> same role ? i tried changing the bounds for the behaviour but doesnt
> help..Is it possible to do so by defining the border coordinates ? how
> ?? Richie

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to