21 lines
502 B
C#
21 lines
502 B
C#
using Ghost.Engine.Utilities;
|
|
using Ghost.Entities.Components;
|
|
using System.Numerics;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Ghost.Engine.Components;
|
|
|
|
[SkipLocalsInit]
|
|
public struct LocalToWorld : IComponentData
|
|
{
|
|
public Matrix4x4 matrix;
|
|
|
|
public static LocalToWorld Identity
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
get => new()
|
|
{
|
|
matrix = MatrixUtility.CreateTRS(Vector3.Zero, Quaternion.Identity, Vector3.One)
|
|
};
|
|
}
|
|
} |