2024-10-13 00:08:01 +02:00
|
|
|
|
using System.Numerics;
|
|
|
|
|
|
|
|
|
|
namespace Nerfed.Runtime.Components
|
|
|
|
|
{
|
|
|
|
|
public struct LocalTransform
|
|
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
2024-10-13 01:20:23 +02:00
|
|
|
|
|
|
|
|
|
public static readonly LocalTransform Identity = new(Vector3.Zero, Quaternion.Identity, Vector3.One);
|
2024-10-13 00:08:01 +02:00
|
|
|
|
}
|
|
|
|
|
}
|