Пример #1
0
        // 添加LinkObj
        /// <summary>
        /// 添加link对象
        /// </summary>
        /// <param name="pRenderObj">挂接对象</param>
        /// <param name="strLinkName">挂接点名称,如果为空,则默认在原点处</param>
        /// <param name="vOffset">相对挂接点偏移</param>
        /// <param name="rotate">相对挂接点旋转</param>
        /// <param name="eFollowType">跟随类型</param>
        /// <returns>linkID,删除时使用</returns>
        public int AddLinkObj(Engine.IRenderObj pRenderObj, ref string strLocatorName, Vector3 vOffset, Quaternion rotate, Engine.LinkFollowType eFollowType = Engine.LinkFollowType.LinkFollowType_ALL)
        {
            if (m_EntityView != null)
            {
                return(m_EntityView.AddLinkObj(pRenderObj, ref strLocatorName, vOffset, rotate, eFollowType));
            }

            return(0);
        }