Really basic component inspection
This commit is contained in:
1 parent
2a351f7b9d
commit
57b42d8daa
4 files changed
+65
-12
No files matched your search
@@ -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