Files
glitchy-engine-beef/ScriptCore/Physics2D.cs
T
Simon Lübeß 5855b13873 Wer weiß, was ich alles so gemacht hatte...
- Fixed crash caused by early ScriptEngine shutdown
2023-05-30 16:50:22 +02:00

22 lines
523 B
C#

using GlitchyEngine.Math;
namespace GlitchyEngine;
/// <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 Vector2 Gravity
{
get
{
ScriptGlue.Physics2D_GetGravity(out Vector2 gravity);
return gravity;
}
set => ScriptGlue.Physics2D_SetGravity(in value);
}
}