Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: PerspectiveCamera

[18:7] extends: Camera

Wraps JavaFX PerspectiveCamera, the standard 3D camera that applies perspective foreshortening: objects farther from the camera appear smaller. Defines a field of view and either a fixed eye position at (0, 0, 0) or an eye that follows the scene origin. When the FixedEyeAtCameraZero constructor flag is true (the common choice for 3D scenes), the camera's eye is at the origin in its own coordinate space, and standard Node translation/rotation moves the camera through the scene.

Methods

  • PerspectiveCamera (bool FixedEyeAtCameraZero = false)

    Creates a new PerspectiveCamera.

    • @p FixedEyeAtCameraZero is an optional bool. When true (recommended for 3D scenes) the camera's eye sits at its local origin so Node transforms position it directly. Default is false, which matches the JavaFX no-arg constructor.
  • setFieldOfView (double Degrees)

    Sets the vertical field of view in degrees. Higher values produce a wider view; lower values zoom in.

    • @p Degrees is a double with the field of view.
    • @r this object
  • getFieldOfView ()

    Returns the vertical field of view in degrees.

    • @r A double with the field of view.
  • setVerticalFieldOfView (bool Vertical)

    Sets whether the field of view is treated as vertical (true) or horizontal (false).

    • @p Vertical is a bool selecting the FOV axis.
    • @r this object
  • fieldOfViewProperty ()

    Returns the field of view property for binding or change listeners.

    • @r An AussomJavaObject around a DoubleProperty.
  • isVerticalFieldOfView ()

    Returns whether the field of view is treated as vertical.

    • @r A bool; true means vertical FOV, false means horizontal.
  • verticalFieldOfViewProperty ()

    Returns the vertical field of view property for binding or change listeners.

    • @r An AussomJavaObject around a BooleanProperty.
  • isFixedEyeAtCameraZero ()

    Returns whether the eye is fixed at the camera's local origin (the flag passed to the constructor).

    • @r A bool; true when the eye is fixed at (0, 0, 0).