mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added basic component access in Scripts
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
using GlitchyEngine.Core;
|
||||
using GlitchyEngine.Math;
|
||||
|
||||
namespace GlitchyEngine;
|
||||
|
||||
public class Transform : EngineObject
|
||||
public class Transform : Component
|
||||
{
|
||||
|
||||
public Vector3 Translation
|
||||
{
|
||||
get
|
||||
{
|
||||
ScriptGlue.Transform_GetTranslation(Entity.UUID, out Vector3 translation);
|
||||
return translation;
|
||||
}
|
||||
set
|
||||
{
|
||||
ScriptGlue.Transform_SetTranslation(Entity.UUID, in value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user