First off, I'd like to know if KeyNavigatorBehavior works on other
TransformGroups other then the ViewPlatforms?

Im trying to use KeyNavigatorBehavior to navigate an object instead of the
view, and I am doing this...

TransformGroup objNav = new TransformGroup();
KeyNavigatorBehavior keyNavBeh = new KeyNavigatorBehavior(objNav);
keyNavBeh.setSchedulingBounds(new BoundingSphere(new Point3d(),1000.0));
objNav.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE|TransformGroup.ALLOW

_TRANSFORM_READ);

but every time I do this I get this error...

javax.media.j3d.CapabilityNotSetException: Group: no capability to get
transform
   at javax.media.j3d.TransformGroup.getTransform(TransformGroup.java:124)

Even though I do set the capability to read as you can see above. Is there
something else I am missing or is the KeyNavigatorBehavior only works with
the viewplatform TG. If so is there another recomended way of dealing with
this, I do plan to create my own custom behavior doing something similar to
KeyNavigatorBehavior but I wanted to test it first.

Leyland Needham

===========================================================================
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