/// <summary> /// static version /// get the position of the transform specified by trPath /// </summary> public static Vector3 ToWorldPos(Transform ccroot, CCTrPath targetTrPath) { Transform relTr = null; if (targetTrPath != null) { relTr = targetTrPath.GetTransform(ccroot); } if (relTr != null) { return(relTr.position); } else { return(Vector3.zero); } }
public CCScaInfo(Vector3 scale, CCTrPath trPath) { m_RelScale = scale; m_TrPath = trPath; }
public CCPosInfo(Vector3 relpos, CCTrPath trPath) : this(relpos, trPath, Space.World) { }
public CCPosInfo(Vector3 relpos, CCTrPath trPath, Space sp) { m_RelPos = relpos; m_RelTr = trPath; m_Space = sp; }
public CCRotInfo(Vector3 relDir, CCTrPath trPath) { m_RelDirection = relDir; m_TrPath = trPath; }