public Missile(long _uniqueID, Vector3 _position, Quaternion _rotation, String _model) : base(_uniqueID, _position, _rotation, _model) { Damage = 55.0f; projectileSpeed = MISSILE_SPEED; trailGenerator = new MissileTrailParticleGenerator(this); trailGenerator.Active = false; detectionSphere = new CollisionSphere(_position, detectionRange); detectionSphere.addCollisionEvent(collisionEvent); detectionSphere.Active = false; detectionSphere.Parent = this; CollisionBase.Active = false; CollisionBase.Parent = this; firstTrailingSphere = new CollisionSphere(_position, BASE_SIZE); firstTrailingSphere.addCollisionEvent(collisionEvent); firstTrailingSphere.Active = false; firstTrailingSphere.Parent = this; ((Sphere)firstTrailingSphere.getPhysicsCollider()).CollisionInformation.CollisionRules.Group = projectileGroup; secondTrailingSphere = new CollisionSphere(_position, BASE_SIZE); secondTrailingSphere.addCollisionEvent(collisionEvent); secondTrailingSphere.Active = false; secondTrailingSphere.Parent = this; ((Sphere)secondTrailingSphere.getPhysicsCollider()).CollisionInformation.CollisionRules.Group = projectileGroup; }
public MissileTrailParticle(Vector3 _position, MissileTrailParticleGenerator _home) : base("Textures/MissileParticleTexture", _position) { home = _home; active = true; ttl = TTL; }
public MissileTrailParticle createMissileTrailParticle(Vector3 _position, MissileTrailParticleGenerator _home) { return new MissileTrailParticle(_position, _home); }