AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OrbitBehavior and PickBehavior

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> 3D Graphics API's for Java
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sun Mar 19, 2006 10:12 am    Post subject: OrbitBehavior and PickBehavior Reply with quote



Hi there,

I would like to translate and zoom some spheres I put in my universe.

I used mouse behavior class PickTranslateBehavior and PickZoomBehavior.
Every thing is fine. However, when I add an OrbitBehavior to the
ViewingPlatform, the behavior of the PickBehavior classes is overridden
by the OrbitBehavior one. In other words, I can not translate and zoom
my spheres without moving the whole graph.

My question is: is it possible to tell the system to apply
PickTranslateBehavior, when I click on a sphere, and OrbitBehavior
otherwise?

Thanks a lot,
Marco

My code:

// add orbit behavior to ViewingPlatform
OrbitBehavior orbit = new OrbitBehavior(canvas,
OrbitBehavior.REVERSE_ALL );
BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0),
100.0);
orbit.setSchedulingBounds(bounds);
viewingPlatform.setViewPlatformBehavior(orbit);

....

Sphere sphere = new Sphere(0.10f,
Sphere.GENERATE_NORMALS | Sphere.ENABLE_GEOMETRY_PICKING,
sphereAppearance);
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> 3D Graphics API's for Java All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.