Documentation

This commit is contained in:
Simon Lübeß
2023-12-13 14:45:33 +01:00
parent ed756f5847
commit a129156641
17 changed files with 211 additions and 37 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
using GlitchyEngine.Components;
using GlitchyEngine.Math;
namespace GlitchyEngine;
namespace GlitchyEngine.Components;
/// <summary>
/// Rigid body component for 2D physics.
/// </summary>
public class Rigidbody2D : Component
{
/// <summary>
+9 -4
View File
@@ -4,8 +4,16 @@ using GlitchyEngine.Math;
namespace GlitchyEngine;
/// <summary>
/// Represents the position, rotation and scale of an entity in the world.
/// <br/><br/>
/// Every entity has a transform component.
/// </summary>
public class Transform : Component
{
/// <summary>
/// Gets or sets the translation (position) of the entity.
/// </summary>
public float3 Translation
{
get
@@ -13,9 +21,6 @@ public class Transform : Component
ScriptGlue.Transform_GetTranslation(Entity.UUID, out float3 translation);
return translation;
}
set
{
ScriptGlue.Transform_SetTranslation(Entity.UUID, in value);
}
set => ScriptGlue.Transform_SetTranslation(Entity.UUID, in value);
}
}