Problem with RigidBody2D when window is resized

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

When the screen is at the default window size (Which for reference is around 640 x 640), the rigid bodies seem to act normal.

However, when you resize the screen, the rigid bodies suddenly disappear.
When you expand the window down, you can see that they’ve somehow been pushed downwards.

Here are some images for more reference (just go to the links):

when at default window size
when window is resized
when we expand the window down

Any help on how to fix this will be greatly appreciated!

:bust_in_silhouette: Reply From: sarthakroy

In Project – Project Settings , in Display – Window option , go at the bottom and select Mode as 2d and aspect as keep.

Also ,check that your RigidBody2D is inside the blue frame (camera view) .