Implementing camera2D bounds in isometric view

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By muthu0914

Does anyone Know about limiting camera2D for isometric view? as the view is not exactly rectangle, the following code is not helping me., even i tried rotate the camera to 45degree, end up in failure.
func _ready():

var map_limits = map_node.get_used_rect()

var map_cellsize = map_node.cell_size

limit_left = map_limits.position.x * map_cellsize.x

limit_top = map_limits.end.x * map_cellsize.x

limit_right = map_limits.position.y * map_cellsize.y

limit_bottom = map_limits.end.y * map_cellsize.y