Constructor
Variables
clampToContentBounds:Bool = true
If true
, camera will try to stay inside content bounds. If not possible, it will be centered.
brakeNearBoundsX:Float = 0.02
Percentage of viewport width where camera will "brake" to stay inside content bounds
brakeNearBoundsY:Float = 0.03
Percentage of viewport height where camera will "brake" to stay inside content bounds
movementThreshold:Float = 0.00001
A threshold value to stop the camera if its movement is lower than this value
contentTranslateX:Float = 0.0
Translation X that should be applied to the content so that the camera is pointing to the correct area. This value is computed by the camera when it is updated.
contentTranslateY:Float = 0.0
Translation Y that should be applied to the content so that the camera is pointing to the correct area This value is computed by the camera when it is updated.
Methods
inlinebrakeNearBounds(brakeNearBoundsX:Float, brakeNearBoundsY:Float):Void
Set brakeNearBoundsX
& brakeNearBoundsY
Parameters:
brakeNearBoundsX | |
---|---|
null | brakeNearBoundsY |