Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: FxObj
Wraps FXGL's Camera3D (com.almasb.fxgl.app.scene.Camera3D), a convenience wrapper around a JavaFX PerspectiveCamera with a TransformComponent for position and rotation, plus tpf-scaled move helpers (moveForward, moveLeft, etc.). Used by 3D games to drive a first-person or follow camera. Bind the underlying PerspectiveCamera (getPerspectiveCamera) to a SubScene to render its view.
Camera3D (bool Construct = true)
Creates a new Camera3D. The default position is (0, 0, -15) with a 60-degree field of view and 1000-unit far clip. Pass false to construct an empty wrapper for adopt.
Construct is true to instantiate immediately, false for an empty wrapper.adopt (object Ajo)
Wraps an existing Camera3D AussomJavaObject.
Ajo is an AussomJavaObject around a Camera3D.A new wrapper.getTransform ()
Returns the camera's TransformComponent (position, rotation, world-relative move helpers).
An AussomJavaObject around a TransformComponent.getPerspectiveCamera ()
Returns the underlying JavaFX PerspectiveCamera. Bind this to a SubScene to render the 3D view.
An AussomJavaObject around a PerspectiveCamera.getMoveSpeed ()
Returns the per-second move speed (units per second).
A double.setMoveSpeed (double Speed)
Sets the per-second move speed.
Speed is the new move speed in units per second.this objectisOverRotationXAllowed ()
Returns whether the X-axis rotation is allowed outside the (-90, 90) range.
A bool.setOverRotationXAllowed (bool Allowed)
Sets whether the X-axis rotation may go outside the (-90, 90) range.
Allowed is the new flag value.this objectupdate (double Tpf)
Advances the camera's tpf-scaled move budget by the given frame time.
Tpf is the per-frame time in seconds.this objectmoveForward ()
Moves the camera forward (along its facing direction) by the current tpf-scaled move budget.
this objectmoveBack ()
Moves the camera backward (opposite its facing direction) by the current tpf-scaled move budget.
this objectmoveForwardXZ ()
Moves the camera forward in the XZ plane only (no Y change), for walking-style movement that ignores pitch.
this objectmoveBackXZ ()
Moves the camera backward in the XZ plane only.
this objectmoveLeft ()
Moves the camera left along its right-axis vector.
this objectmoveRight ()
Moves the camera right along its right-axis vector.
this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.