You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
439 B

using System.Numerics;
using gaemstone.ECS;
namespace gaemstone.Components;
[Module]
public class TransformComponents
{
[Symbol, Component]
public struct GlobalTransform
{
public Matrix4x4 Value;
public GlobalTransform(Matrix4x4 value) => Value = value;
public static implicit operator GlobalTransform(in Matrix4x4 value) => new(value);
public static implicit operator Matrix4x4(in GlobalTransform index) => index.Value;
}
}