Esempio n. 1
0
 public RocketCarrierService(Vector3 positionXNA, Direction dir)
     : base(positionXNA, Material.Ice, StaticData.RocketCarrierHalfSize)
 {
     this.TextureType  = TextureType.Rocket;
     this.IsCollidable = false;
     this.Dir          = dir;
     this.UpdateDirection(dir);
     this.PositionXNAInitial = this.PositionXNA;
     this._particleEngine    = new ParticleEngineCore(new Vector2(this.PositionXNA.X, this.PositionXNA.Y), 30, 20, 1);
     //StaticData.EngineManager.RigidsManagerEngine.AddRigidBody(this);
 }
Esempio n. 2
0
 public RocketService(Vector3 intitialForce,
                      Vector3 positionXNA,
                      Vector3 halfSize,
                      int closeArea)
     : base(positionXNA, Material.Ice, halfSize)
 {
     this.CloseArea     = closeArea;
     this.IsExploded    = false;
     this.ForceThrottle = intitialForce;
     this.TextureType   = TextureType.Rocket;
     StaticData.EngineManager.RigidsManagerEngine.AddRigidBody(this);
     _particleEngine = new ParticleEngineCore(new Vector2(400, 240), StaticData.MinTTL, StaticData.MaxNextTTL, 10);
 }