CameraConfig class

Class use to configure camera behavior.

Constructors

CameraConfig({Vector2? sizeMovementWindow, bool moveOnlyMapArea = false, double zoom = 1.0, double angle = 0.0, GameComponent? target, bool smoothCameraEnabled = false, double smoothCameraSpeed = 1.0})

Properties

angle double
Camera angle to rotate the camera. default: 0
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
moveOnlyMapArea bool
When this true the camera remains within the map area
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeMovementWindow Vector2
Player movement window before the camera moves
getter/setter pair
smoothCameraEnabled bool
getter/setter pair
smoothCameraSpeed double
getter/setter pair
target GameComponent?
Component that the camera will focus on / follow
getter/setter pair
zoom double
camera zoom configurarion. default: 1
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

sizeWidowsDefault Vector2
final