public virtual void FromBZWObject(BZFlag.Map.Elements.Physics obj) { GUID = obj.GUID; Name = obj.Name; Linear = new Vector3(obj.Linear.X, obj.Linear.Z, obj.Linear.Y); Angular = new Vector3(obj.Angular.X, obj.Angular.Y, obj.Angular.Z); Slide = obj.Slide; Death = obj.Death; Attributes = obj.Attributes; }
public override BZFlag.Map.Elements.BasicObject ToBZWObject() { var phyz = new BZFlag.Map.Elements.Physics(); phyz.Name = name; phyz.GUID = GUID; phyz.Linear = new Vector3F(Linear.x, Linear.z, Linear.y); phyz.Angular = new Vector3F(Angular.x, Linear.y, Angular.z); phyz.Slide = Slide; phyz.Death = Death.Trim(); phyz.Attributes = Attributes; return(phyz); }
public void AddPhysics() { BZFlag.Map.Elements.Physics t = new BZFlag.Map.Elements.Physics(); t.Name = "NewPhysics_" + t.GUID; FromBZW.NewMapObject <BZWPhysics>(t); }