public void SetTransformTo(Transform trans) { trans.localScale = Scale; trans.localEulerAngles = MyMathUtils.RadToDeg(Rotation); trans.localPosition = Position; }
public static MyTransformTriplet FromGlobalTransform(Transform transform) { return(new MyTransformTriplet(transform.position, MyMathUtils.DegToRad(transform.eulerAngles), transform.lossyScale)); }