Hello,
I think you forgot to set the bounds for the behavior. You also have to add
the behavior to a parent group node, e.g.:
BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0),
500.0);
...
TransformGroup objTrans = new TransformGroup(); // or any other parent
group node
MouseZoom behavior = new MouseZoom(objTrans);
objTrans.addChild(behavior);
behavior.setSchedulingBounds(bounds);
....
Best regards,
Thomas Langhagel
Matthew Carpenter <[EMAIL PROTECTED]> am 06/15/99 09:25:02 PM
Bitte antworten an [EMAIL PROTECTED]
An: [EMAIL PROTECTED]
Kopie: (Blindkopie: Thomas Langhagel)
Thema: [JAVA3D] Mouse Behaviors...
I am still very new to J3d, so this is probably a really simple/stupid
question, but why can't I get my mouse behavior to work?
my code is essentially:
SimpleUniverse myUniverse = new SimpleUniverse(myCanvas3D);
BranchGroup contentBranchGroup = constructContentBranch();
myUniverse.addBranchGraph(contentBranchGroup);
myUniverse.addBranchGraph(constructDXFBranch());
MouseZoom mz = new
MouseZoom(myUniverse.getViewingPlatform().getViewPlatformTransform());
Have I forgotten to activate the behavior?
===
Matthew Carpenter
BACS, CNI, CNE, CNA
[EMAIL PROTECTED]
Enterprise Information Systems
*Network Consulting, Integration & Support
*Web Development and E-Commerce
*Custom Application Development
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com