mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
ScriptCore: Moved Physics2D into Physics namespace
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user