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


C# ISpace.Remove方法代码示例

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


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

示例1: OnRemovalFromSpace

 public override void OnRemovalFromSpace(ISpace oldSpace)
 {
     //Remove any supplements from the space too.
     oldSpace.Remove(Body);
     oldSpace.Remove(HorizontalMotionConstraint);
     oldSpace.Remove(VerticalMotionConstraint);
     //This character controller requires the standard implementation of Space.
     ((Space)oldSpace).BoundingBoxUpdater.Finishing -= ExpandBoundingBox;
     SupportFinder.ClearSupportData();
     Body.AngularVelocity = new Vector3();
     Body.LinearVelocity = new Vector3();
 }
开发者ID:brunoduartec,项目名称:port-ploobsengine,代码行数:12,代码来源:SphereCharacterController.cs

示例2: OnRemovalFromSpace

 public void OnRemovalFromSpace(ISpace oldSpace)
 {
     oldSpace.Remove(Model);
     oldSpace.Remove(joint);
     Model.Ent.CollisionInformation.Events.PairTouching -= onCollision;
 }
开发者ID:snoozbuster,项目名称:accelerated-delivery,代码行数:6,代码来源:Button.cs

示例3: OnRemovalFromSpace

        internal void OnRemovalFromSpace(ISpace space)
        {
            space.Remove(shape.detector);

            shape.OnRemovalFromSpace(space);
        }
开发者ID:rc183,项目名称:igf,代码行数:6,代码来源:Wheel.cs

示例4:

 void ISpaceObject.OnRemovalFromSpace(ISpace oldSpace)
 {
     if(/*Ent != null &&*/ Ent.Space != null)
     oldSpace.Remove(Ent);
     //else if(mesh != null)
     //    oldSpace.Remove(mesh);
 }
开发者ID:snoozbuster,项目名称:accelerated-delivery,代码行数:7,代码来源:BaseModel.cs

示例5: OnRemovalFromSpace

 /// <summary>
 /// Removes the motors from the space.  Called automatically.
 /// </summary>
 public override void OnRemovalFromSpace(ISpace oldSpace)
 {
     oldSpace.Remove(LinearMotor);
 }
开发者ID:dsmo7206,项目名称:Lemma,代码行数:7,代码来源:EntityMover.cs

示例6: OnRemovalFromSpace

 /// <summary>
 /// Sets up the vehicle's information when being added to the space.
 /// Called automatically when the space adds the vehicle.
 /// </summary>
 public override void OnRemovalFromSpace(ISpace oldSpace)
 {
     foreach (Wheel wheel in Wheels)
     {
         wheel.OnRemovalFromSpace(oldSpace);
     }
     oldSpace.Remove(Body);
 }
开发者ID:rc183,项目名称:igf,代码行数:12,代码来源:Vehicle.cs

示例7:

 void ISpaceObject.OnRemovalFromSpace(ISpace oldSpace)
 {
     //oldSpace.Remove(m1);
     //oldSpace.Remove(m2);
     if(motor != null)
         oldSpace.Remove(motor);
     oldSpace.Remove(Ent);
     GameManager.Space.DuringForcesUpdateables.Starting -= updateVelocities;
 }
开发者ID:snoozbuster,项目名称:accelerated-delivery,代码行数:9,代码来源:Tube.cs

示例8: OnRemovalFromSpace

 /// <summary>
 /// Adds the BeltPiece to an ISpace.
 /// </summary>
 /// <param name="oldSpace"></param>
 public void OnRemovalFromSpace(ISpace oldSpace)
 {
     foreach(BaseModel m in models.Union(tubes))
         oldSpace.Remove(m);
 }
开发者ID:snoozbuster,项目名称:accelerated-delivery,代码行数:9,代码来源:BeltPiece.cs

示例9: OnRemovalFromSpace

 public virtual void OnRemovalFromSpace(ISpace s)
 {
     foreach(BaseModel m in modelList)
         if(m.Ent.Space == s)
             s.Remove(m);
     foreach(Tube t in tubeList)
         if(t.Ent.Space == s)
             s.Remove(t);
     foreach(Button b in inputs.FindAll(v => { return v is Button; }))
     {
         RenderingDevice.Remove(b.Model);
         //if(b.Model.Ent.Space == null)
         //    s.Remove(b);
     }
     (s as Space).DuringForcesUpdateables.Starting -= updateVelocities;
 }
开发者ID:snoozbuster,项目名称:accelerated-delivery,代码行数:16,代码来源:OperationalMachine.cs

示例10: OnRemovalFromSpace

 public override void OnRemovalFromSpace(ISpace oldSpace)
 {
     //Remove any supplements from the space too.
     oldSpace.Remove(Body);
     //This character controller requires the standard implementation of Space.
     ((Space)oldSpace).BoundingBoxUpdater.Finishing -= ExpandBoundingBox;
     support = null;
     supportData = new RayHit();
     hasTraction = false;
     Body.AngularVelocity = new Vector3();
     Body.LinearVelocity = new Vector3();
 }
开发者ID:gpforde,项目名称:GPBrakes,代码行数:12,代码来源:CharacterControllerConvexCast.cs

示例11: OnRemovalFromSpace

 public void OnRemovalFromSpace(ISpace oldSpace)
 {
     foreach(OperationalMachine o in machines)
         oldSpace.Remove(o);
     foreach(BaseModel m in models)
         oldSpace.Remove(m);
 }
开发者ID:snoozbuster,项目名称:accelerated-delivery,代码行数:7,代码来源:Machine.cs


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