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