using GlitchyEngine.Math;
namespace GlitchyEngine;
///
/// Allows changing the properties of the 2D physics simulation in the current scene.
///
public static class Physics2D
{
///
/// Gets or sets the gravity of the current scene.
///
public static float2 Gravity
{
get
{
ScriptGlue.Physics2D_GetGravity(out float2 gravity);
return gravity;
}
set => ScriptGlue.Physics2D_SetGravity(in value);
}
}