# SetPhysicsScale

## Description

Sets the scale used by the physics system compared with world coordinates.
By design the physics system is set to use 1 unit as equalling 1 meter, which in the case of default world coordinates (100,100) would mean that the screen is 100 meters by 100 meters in the physics simulation. However by design the physics system is designed to work best with dynamic objects ranging from 0.1 meters to 10 meters in size, and with static objects up to 50 meters, so the screen is scaled down when sent to the physics system, by default the scale is 0.2, so in the physics world the screen is 20 meters by 20 meters. This is purely to allow the physics system to work at its designed scale whilst allowing world coordinates to be used as parameters with the AGK doing all the necessary scaling behind the scenes. This function allows you to change the scale factor if your virtual resolution is going to be different from 100,100.
This function must be called before any other physics functions, and must not be called once the physics system is running.

## Definition

SetPhysicsScale( scale )

void agk::SetPhysicsScale( float scale )

## Parameters

- scale - The new scale value to use for all screen to physics values and vice versa.