This commit is contained in:
2025-05-16 23:31:59 +08:00
parent 9e4fef3f1e
commit d891e3f0ee
1198 changed files with 274242 additions and 1558 deletions

View File

@@ -0,0 +1,29 @@
using UnityEngine;
namespace VLB
{
public static class TransformUtils
{
public struct Packed
{
public Vector3 position;
public Quaternion rotation;
public Vector3 lossyScale;
public bool IsSame(Transform transf)
{
return transf.position == position && transf.rotation == rotation && transf.lossyScale == lossyScale;
}
}
public static Packed GetWorldPacked(this Transform self)
{
return new Packed()
{
position = self.position,
rotation = self.rotation,
lossyScale = self.lossyScale,
};
}
}
}