Really basic component inspection

This commit is contained in:
max committed 2024-10-22 23:54:36 +02:00
1 parent 2a351f7b9d
commit 57b42d8daa
4 files changed
+65 -12

No files matched your search

+4 -11
View File
@@ -2,18 +2,11 @@
namespace Nerfed.Runtime.Components
{
public struct LocalTransform
public readonly record struct LocalTransform(Vector3 position, Quaternion rotation, Vector3 scale)
{
public Vector3 position;
public Quaternion rotation;
public Vector3 scale;
public LocalTransform(Vector3 position, Quaternion rotation, Vector3 scale)
{
this.position = position;
this.rotation = rotation;
this.scale = scale;
}
public readonly Vector3 position = position;
public readonly Quaternion rotation = rotation;
public readonly Vector3 scale = scale;
public static readonly LocalTransform Identity = new(Vector3.Zero, Quaternion.Identity, Vector3.One);
}