本文整理汇总了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();
}
示例2: OnRemovalFromSpace
public void OnRemovalFromSpace(ISpace oldSpace)
{
oldSpace.Remove(Model);
oldSpace.Remove(joint);
Model.Ent.CollisionInformation.Events.PairTouching -= onCollision;
}
示例3: OnRemovalFromSpace
internal void OnRemovalFromSpace(ISpace space)
{
space.Remove(shape.detector);
shape.OnRemovalFromSpace(space);
}
示例4:
void ISpaceObject.OnRemovalFromSpace(ISpace oldSpace)
{
if(/*Ent != null &&*/ Ent.Space != null)
oldSpace.Remove(Ent);
//else if(mesh != null)
// oldSpace.Remove(mesh);
}
示例5: OnRemovalFromSpace
/// <summary>
/// Removes the motors from the space. Called automatically.
/// </summary>
public override void OnRemovalFromSpace(ISpace oldSpace)
{
oldSpace.Remove(LinearMotor);
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例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();
}
示例11: OnRemovalFromSpace
public void OnRemovalFromSpace(ISpace oldSpace)
{
foreach(OperationalMachine o in machines)
oldSpace.Remove(o);
foreach(BaseModel m in models)
oldSpace.Remove(m);
}