...
Panel |
---|
|
Code segment
Specifying a Fixed fixed Camera (existing 2.2 API)
Code Block |
---|
// Create a camera and add it to the Scene Camera camera = new PerspectiveCamera(); scene.setCamera(camera); |
Specifying a Movable movable Camera
Code Block |
---|
// Create a camera and add it to the Scene Camera camera = new PerspectiveCamera(); scene.setCamera(camera); // Add camera to scene graph (so it can move) Group cameraGroup = new Group(); cameraGroup.getChildren().add(camera); root.getChildren().add(cameraGroup); // Rotate the camera camera.rotate(45); // Move the cameraGroup (camera moves with it) cameraGroup.setTranslateZ(-75); |
...
Overview
Content Tools
ThemeBuilder