• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# PhysicsActor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中PhysicsActor的典型用法代码示例。如果您正苦于以下问题:C# PhysicsActor类的具体用法?C# PhysicsActor怎么用?C# PhysicsActor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PhysicsActor类属于命名空间,在下文中一共展示了PhysicsActor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: RemoveAvatar

 public override void RemoveAvatar(PhysicsActor character)
 {
     POSCharacter act = (POSCharacter) character;
     if (_characters.Contains(act))
     {
         _characters.Remove(act);
     }
 }
开发者ID:BackupTheBerlios,项目名称:seleon,代码行数:8,代码来源:POSScene.cs


示例2: RemoveAvatar

 public override void RemoveAvatar(PhysicsActor actor)
 {
     BasicActor act = (BasicActor) actor;
     if (_actors.Contains(act))
     {
         _actors.Remove(act);
     }
 }
开发者ID:AlphaStaxLLC,项目名称:taiga,代码行数:8,代码来源:BasicPhysicsScene.cs


示例3: RemovePrim

 public override void RemovePrim(PhysicsActor prim)
 {
     POSPrim p = (POSPrim) prim;
     if (_prims.Contains(p))
     {
         _prims.Remove(p);
     }
 }
开发者ID:BackupTheBerlios,项目名称:seleon,代码行数:8,代码来源:POSScene.cs


示例4: AddPhysicsActorTaint

 public override void AddPhysicsActorTaint(PhysicsActor prim)
 {
     //throw new NotSupportedException("AddPhysicsActorTaint must be called with a taint type");
 }
开发者ID:kf6kjg,项目名称:halcyon,代码行数:4,代码来源:PhysxScene.cs


示例5: RemoveAvatar

 public override void RemoveAvatar(PhysicsActor actor)
 {
     this.QueueCommand(new Commands.RemoveCharacterCmd((PhysxCharacter)actor));
 }
开发者ID:kf6kjg,项目名称:halcyon,代码行数:4,代码来源:PhysxScene.cs


示例6: RemovePrim

    public override void RemovePrim(PhysicsActor prim)
    {
        if (!m_initialized) return;

        BSPhysObject bsprim = prim as BSPhysObject;
        if (bsprim != null)
        {
            DetailLog("{0},RemovePrim,call", bsprim.LocalID);
            // m_log.DebugFormat("{0}: RemovePrim. id={1}/{2}", LogHeader, bsprim.Name, bsprim.LocalID);
            try
            {
                lock (PhysObjects) PhysObjects.Remove(bsprim.LocalID);
            }
            catch (Exception e)
            {
                m_log.ErrorFormat("{0}: Attempt to remove prim that is not in physics scene: {1}", LogHeader, e);
            }
            bsprim.Destroy();
            // bsprim.dispose();
        }
        else
        {
            m_log.ErrorFormat("{0}: Attempt to remove prim that is not a BSPrim type.", LogHeader);
        }
    }
开发者ID:Michelle-Argus,项目名称:opensim,代码行数:25,代码来源:BSScene.cs


示例7: link

 public override void link(PhysicsActor obj) { return; }
开发者ID:NovaGrid,项目名称:opensim,代码行数:1,代码来源:BSCharacter.cs


示例8: RemoveAllJointsConnectedToActorThreadLocked

 public virtual void RemoveAllJointsConnectedToActorThreadLocked(PhysicsActor actor)
 { return; }
开发者ID:Gitlab11,项目名称:opensim,代码行数:2,代码来源:PhysicsScene.cs


示例9: RemoveAvatar

 /// <summary>
 /// Remove an avatar.
 /// </summary>
 /// <param name="actor"></param>
 public abstract void RemoveAvatar(PhysicsActor actor);
开发者ID:Gitlab11,项目名称:opensim,代码行数:5,代码来源:PhysicsScene.cs


示例10: RemovePrim

 public override void RemovePrim(PhysicsActor prim)
 {
     if (prim is BulletXPrim)
     {
         lock (BulletXLock)
         {
             try
             {
                 ddWorld.RemoveRigidBody(((BulletXPrim) prim).RigidBody);
             }
             catch (Exception ex)
             {
                 BulletXMessage(is_ex_message + ex.Message, true);
                 ((BulletXPrim) prim).RigidBody.ActivationState = ActivationState.DisableSimulation;
                 AddForgottenRigidBody(((BulletXPrim) prim).RigidBody);
             }
             _prims.Remove(((BulletXPrim) prim).RigidBody);
         }
         GC.Collect();
     }
 }
开发者ID:dirkhusemann,项目名称:opensim,代码行数:21,代码来源:BulletXPlugin.cs


示例11: RemoveAvatar

 public override void RemoveAvatar(PhysicsActor actor)
 {
     if (actor is BulletXCharacter)
     {
         lock (BulletXLock)
         {
             try
             {
                 ddWorld.RemoveRigidBody(((BulletXCharacter) actor).RigidBody);
             }
             catch (Exception ex)
             {
                 BulletXMessage(is_ex_message + ex.Message, true);
                 ((BulletXCharacter) actor).RigidBody.ActivationState = ActivationState.DisableSimulation;
                 AddForgottenRigidBody(((BulletXCharacter) actor).RigidBody);
             }
             _characters.Remove(((BulletXCharacter) actor).RigidBody);
         }
         GC.Collect();
     }
 }
开发者ID:dirkhusemann,项目名称:opensim,代码行数:21,代码来源:BulletXPlugin.cs


示例12: link

 public abstract void link(PhysicsActor obj);
开发者ID:shangcheng,项目名称:Aurora,代码行数:1,代码来源:PhysicsActor.cs


示例13: changelink

        private void changelink(float timestep)
        {
            // If the newly set parent is not null
            // create link
            if (_parent == null && m_taintparent != null)
            {
                if (m_taintparent.PhysicsActorType == (int)ActorTypes.Prim)
                {
                    OdePrim obj = (OdePrim)m_taintparent;
                    //obj.disableBody();
//Console.WriteLine("changelink calls ParentPrim");
                    obj.AddChildPrim(this);

                    /*
                    if (obj.Body != (IntPtr)0 && Body != (IntPtr)0 && obj.Body != Body)
                    {
                        _linkJointGroup = d.JointGroupCreate(0);
                        m_linkJoint = d.JointCreateFixed(_parent_scene.world, _linkJointGroup);
                        d.JointAttach(m_linkJoint, obj.Body, Body);
                        d.JointSetFixed(m_linkJoint);
                    }
                     */
                }
            }
            // If the newly set parent is null
            // destroy link
            else if (_parent != null && m_taintparent == null)
            {
//Console.WriteLine("  changelink B");
            
                if (_parent is OdePrim)
                {
                    OdePrim obj = (OdePrim)_parent;
                    obj.ChildDelink(this);
                    childPrim = false;
                    //_parent = null;
                }
                
                /*
                    if (Body != (IntPtr)0 && _linkJointGroup != (IntPtr)0)
                    d.JointGroupDestroy(_linkJointGroup);
                        
                    _linkJointGroup = (IntPtr)0;
                    m_linkJoint = (IntPtr)0;
                */
            }
 
            _parent = m_taintparent;
            m_taintPhysics = IsPhysical;
        }
开发者ID:NovaGrid,项目名称:opensim,代码行数:50,代码来源:ODEPrim.cs


示例14: link

 public override void link(PhysicsActor obj)
 {
     m_taintparent = obj;
 }
开发者ID:NovaGrid,项目名称:opensim,代码行数:4,代码来源:ODEPrim.cs


示例15: RemoveAvatar

 public override void RemoveAvatar(PhysicsActor actor)
 {
 }
开发者ID:BogusCurry,项目名称:arribasim-dev,代码行数:3,代码来源:NullPhysicsScene.cs


示例16: RemovePrim

 public override void RemovePrim(PhysicsActor prim)
 {
 }
开发者ID:BogusCurry,项目名称:arribasim-dev,代码行数:3,代码来源:NullPhysicsScene.cs


示例17: LinkToNewParent

 public override void LinkToNewParent(PhysicsActor obj, Vector3 localPos, Quaternion localRot)
 {
     
 }
开发者ID:kf6kjg,项目名称:halcyon,代码行数:4,代码来源:BasicActor.cs


示例18: RemovePrim

 /// <summary>
 /// Remove a prim.
 /// </summary>
 /// <param name="prim"></param>
 public abstract void RemovePrim(PhysicsActor prim);
开发者ID:Gitlab11,项目名称:opensim,代码行数:5,代码来源:PhysicsScene.cs


示例19: AttachToPhysicsShape

        public void AttachToPhysicsShape(PhysicsActor shape, bool isChild)
        {
            PhysActor = shape;
            SetPhysActorRelationProperties();

            if (!isChild)
            {
                PhysActor.OnRequestTerseUpdate -= this.PhysicsRequestingTerseUpdate;
                PhysActor.OnRequestTerseUpdate += this.PhysicsRequestingTerseUpdate;
                PhysActor.OnComplexityError -= new PhysicsActor.ComplexityError(PhysActor_OnComplexityError);
                PhysActor.OnComplexityError += new PhysicsActor.ComplexityError(PhysActor_OnComplexityError);
                PhysActor.OnPhysicsRequestingOBB -= PhysActor_OnPhysicsRequestingOBB;
                PhysActor.OnPhysicsRequestingOBB += PhysActor_OnPhysicsRequestingOBB;
            }

            PhysActor.OnNeedsPersistence -= new PhysicsActor.RequestPersistence(PhysActor_OnNeedsPersistence);
            PhysActor.OnNeedsPersistence += new PhysicsActor.RequestPersistence(PhysActor_OnNeedsPersistence);
            PhysActor.OnPositionUpdate -= new PositionUpdate(PhysActor_OnPositionUpdate);
            PhysActor.OnPositionUpdate += new PositionUpdate(PhysActor_OnPositionUpdate);

            this.CheckForScriptCollisionEventsAndSubscribe();
        }
开发者ID:kf6kjg,项目名称:halcyon,代码行数:22,代码来源:SceneObjectPart.cs


示例20: AddPhysicsActorTaint

 public abstract void AddPhysicsActorTaint(PhysicsActor prim);
开发者ID:Gitlab11,项目名称:opensim,代码行数:1,代码来源:PhysicsScene.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# PhysicsObject类代码示例发布时间:2022-05-24
下一篇:
C# PhysicalServer类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap