(I already did searches for the last 1-2 hours but didnt find anything that helped me, so please dont be angry with me )

Im currently working on a little game and ive got a little window resizing issue.

for an example:

i use a variable called norm_value_x and y calculated from the distance of the (static) camera node to 0,0,0. (tangens(20Ă‚Â°)*distance to (0,0,0))

so if i have the camera at (0,-100,0) norm_value_x would be something like 33(divided by 50, so -50*norm value_x is the left side). this way i can place objects in a pseudogrid from -50 to +50.

(i didnt come up with anything better, so if there is, pls tell me)

as soon as the window is resized, (as far as i understood it) the camera settings are changed from 4:3 to whatever you drag the window to. now norm_value_x and y arent correct anymore and i can dump my whole idea.

so my questions: can you forbid window resizing somewhere in the game code?

or more important: is there a better solution than introducing those variables?

if there is a post with good enough answers pls just post a link and thanks for any help in advance!