Example #1
0
        /// <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);
            }
        }
Example #2
0
 public CCScaInfo(Vector3 scale, CCTrPath trPath)
 {
     m_RelScale = scale;
     m_TrPath   = trPath;
 }
Example #3
0
 public CCPosInfo(Vector3 relpos, CCTrPath trPath)
     : this(relpos, trPath, Space.World)
 {
 }
Example #4
0
 public CCPosInfo(Vector3 relpos, CCTrPath trPath, Space sp)
 {
     m_RelPos = relpos;
     m_RelTr  = trPath;
     m_Space  = sp;
 }
Example #5
0
 public CCRotInfo(Vector3 relDir, CCTrPath trPath)
 {
     m_RelDirection = relDir;
     m_TrPath       = trPath;
 }