Ok, so I want to implement my zoom feature, but I want it to be keyboard-driven. Just because.
So, I’m looking through the tutorials, and I see how to zoom with the mouse, but that’s a built-in behavior, and I can’t see the source code. And I don’t want to do it that way.
So then I look some more and I see how to get the ViewPlatform transfrom object from the SimpleUniverse, but then they use another pre-built behavior, with the keyboard, but not the way I want it.
Clearly, I want to create my own Behavior from scratch. So, then I look around and find the javadoc for the Transform3D class, and I see methods for rotation. But most of the other methods don’t make much sense to me.
So, two questions:
-
Is there a tutorial/faq/example out there that will help me better understand the many methods of the Transform3D class?
-
If I just want to move the viewer closer to/farther away from my object, I think that’s along the Z axis. So, how do I just add to or subtract from the Z-coordinate of the viewing platform? Not rotating, just moving in a straight line?
Thanks in advance for your help to an annoying newbie,
Kit