ScriptCore: Moved Physics2D into Physics namespace

This commit is contained in:
Simon Lübeß
2023-12-17 18:47:29 +01:00
parent 6a87d1ac09
commit 3a3778651d
+22
View File
@@ -0,0 +1,22 @@
using GlitchyEngine.Math;
namespace GlitchyEngine.Physics;
/// <summary>
/// Allows changing the properties of the 2D physics simulation in the current scene.
/// </summary>
public static class Physics2D
{
/// <summary>
/// Gets or sets the gravity of the current scene.
/// </summary>
public static float2 Gravity
{
get
{
ScriptGlue.Physics2D_GetGravity(out float2 gravity);
return gravity;
}
set => ScriptGlue.Physics2D_SetGravity(in value);
}
}