Really basic component inspection
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user