public static void set(this Transform transform, PMatrix matrix) { transform.localScale = matrix.getScale(); transform.rotation = matrix.getRotation(); transform.position = matrix.getPosition(); }