当前位置: 首页>>代码示例>>C#>>正文


C# SceneObjectPart.Copy方法代码示例

本文整理汇总了C#中OpenSim.Region.Framework.Scenes.SceneObjectPart.Copy方法的典型用法代码示例。如果您正苦于以下问题:C# SceneObjectPart.Copy方法的具体用法?C# SceneObjectPart.Copy怎么用?C# SceneObjectPart.Copy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OpenSim.Region.Framework.Scenes.SceneObjectPart的用法示例。


在下文中一共展示了SceneObjectPart.Copy方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CopyRootPart

 /// <summary>
 /// Copy the given part as the root part of this scene object.
 /// </summary>
 /// <param name="part"></param>
 /// <param name="cAgentID"></param>
 /// <param name="cGroupID"></param>
 public void CopyRootPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed)
 {
     SetRootPart(part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, 0, userExposed));
 }
开发者ID:justasabc,项目名称:opensim75grid,代码行数:10,代码来源:SceneObjectGroup.cs

示例2: CopyPart

        /// <summary>
        /// Make a copy of the given part.
        /// </summary>
        /// <param name="part"></param>
        /// <param name="cAgentID"></param>
        /// <param name="cGroupID"></param>
        public SceneObjectPart CopyPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed)
        {
            SceneObjectPart newPart = part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, m_parts.Count, userExposed);
            AddPart(newPart);

            SetPartAsNonRoot(newPart);
            return newPart;
        }
开发者ID:justasabc,项目名称:opensim75grid,代码行数:14,代码来源:SceneObjectGroup.cs

示例3: CopyRootPart

        /// <summary>
        /// Copy the given part as the root part of this scene object.
        /// </summary>
        /// <param name="part"></param>
        /// <param name="cAgentID"></param>
        /// <param name="cGroupID"></param>
        public void CopyRootPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed)
        {
            SceneObjectPart newpart = part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, 0, userExposed);
//            SceneObjectPart newpart = part.Copy(part.LocalId, OwnerID, GroupID, 0, userExposed);
//            newpart.LocalId = m_scene.AllocateLocalId();

            SetRootPart(newpart);
            if (userExposed)
                RootPart.Velocity = Vector3.Zero; // In case source is moving
        }
开发者ID:emperorstarfinder,项目名称:Opensim2,代码行数:16,代码来源:SceneObjectGroup.cs

示例4: CopyPart

        /// <summary>
        /// Make a copy of the given part.
        /// </summary>
        /// <param name="part"></param>
        /// <param name="cAgentID"></param>
        /// <param name="cGroupID"></param>
        public SceneObjectPart CopyPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed, bool serializePhysicsState)
        {
            SceneObjectPart newPart = part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, m_parts.Count, userExposed, serializePhysicsState);

            if (userExposed)
            {
                newPart.SetParentAndUpdatePhysics(this);
            }
            else
            {
                newPart.SetParent(this);
            }

            lock (m_parts)
            {
                m_parts.Add(newPart.UUID, newPart);
                this.TrackLocalId(newPart, newPart.LocalId);
                // newPart.ParentGroup.ServerWeight is updated by the caller (Copy)
            }

            SetPartAsNonRoot(newPart);

            return newPart;
        }
开发者ID:zwagoth,项目名称:halcyon,代码行数:30,代码来源:SceneObjectGroup.cs

示例5: CopyRootPart

 public void CopyRootPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed, bool serializePhysicsState)
 {
     SceneObjectPart dupe = part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, m_parts.Count, userExposed, serializePhysicsState);
     SetRootPart(dupe);
 }
开发者ID:zwagoth,项目名称:halcyon,代码行数:5,代码来源:SceneObjectGroup.cs

示例6: CopyRootPart

 /// <summary>
 /// Copy the given part as the root part of this scene object.
 /// </summary>
 /// <param name="part"></param>
 /// <param name="cAgentID"></param>
 /// <param name="cGroupID"></param>
 public void CopyRootPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed, bool ChangeScripts)
 {
     SetRootPart(part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, m_parts.Count, userExposed, ChangeScripts));
 }
开发者ID:shangcheng,项目名称:Aurora,代码行数:10,代码来源:SceneObjectGroup.cs

示例7: CopyPart

        /// <summary>
        /// Make a copy of the given part.
        /// </summary>
        /// <param name="part"></param>
        /// <param name="cAgentID"></param>
        /// <param name="cGroupID"></param>
        public SceneObjectPart CopyPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed, bool serializePhysicsState)
        {
            SceneObjectPart newPart = part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, m_childParts.Count, userExposed, serializePhysicsState);

            if (userExposed)
            {
                newPart.SetParentAndUpdatePhysics(this);
            }
            else
            {
                newPart.SetParent(this, true);
            }
            
            m_childParts.AddPart(newPart);

            SetPartAsNonRoot(newPart);

            return newPart;
        }
开发者ID:kf6kjg,项目名称:halcyon,代码行数:25,代码来源:SceneObjectGroup.cs


注:本文中的OpenSim.Region.Framework.Scenes.SceneObjectPart.Copy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。