StageCamera class final

Reusable orbit camera preset for renderer view switching.

Keep several StageCamera values in app state and pass the active one to FilamentViewportController.setCamera when the user changes view mode.

Constructors

StageCamera.orbit({Vector3 target = Vector3.zero, double yaw = 0, double pitch = 0, double distance = 4})
Creates an orbit camera around target.
const

Properties

distance double
Distance from target.
final
eye Vector3
World-space eye position derived from the orbit settings.
no setter
hashCode int
The hash code for this object.
no setteroverride
pitch double
Vertical orbit angle in radians.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target Vector3
Point the camera orbits around.
final
yaw double
Horizontal orbit angle in radians.
final

Methods

copyWith({Vector3? target, double? yaw, double? pitch, double? distance}) StageCamera
Returns a camera with selected values replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orbitBy(double deltaYaw, double deltaPitch) StageCamera
Returns a camera rotated by deltaYaw and deltaPitch.
toMessage() Map<String, Object>
Serializes settings for the native renderer bridge.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

defaultView → const StageCamera
Default renderer camera used by the Android Filament viewport.