Hi all;

I am trying to add an 'OrbitBehavior' to my scene. However, I am getting
the below error message. Has anybody got an idea what the problem is?

I am not using SimpleUniverse, but using a VirtualUniverse with a Locale
attached to it.
I also use Java3D 1.3 Beta.

Thanks
Murat

******************************************
//My code
  VirtualUniverse universe = new VirtualUniverse();
  Locale locale = new Locale(universe);
  vp = new ViewPlatform();
  view_group = new BranchGroup();
  objRoot = new BranchGroup();

  // add orbit behavior to the ViewingPlatform
  OrbitBehavior orbit = new OrbitBehavior(canvas3D,
OrbitBehavior.REVERSE_ALL);
  BoundingSphere bounds = new BoundingSphere(p3d, radius);
  orbit.setSchedulingBounds(bounds);
  vp.setViewPlatformBehavior(orbit);

******************************************
//Error message
Test.java:556: cannot resolve symbol
symbol  : method setViewPlatformBehavior
(com.sun.j3d.utils.behaviors.vp.OrbitBehavior)
location: class javax.media.j3d.ViewPlatform
vp.setViewPlatformBehavior(orbit);
                  ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
1 error

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