private void createProjectile(Ship player) {
		// TODO Auto-generated method stub
    	Projectile p = (Projectile) ((Projectile) resourceManager.rocketSprites.get((int)(Math.random()*resourceManager.rocketSprites.size()))).clone();
    	p.parentId = player.id;
        p.setRotation((float) player.heading.perp().getTheta());
        p.setVelocityX(player.getVelocityX()*1.5f);
        p.setVelocityY(player.getVelocityY()*1.5f);
        
        float dist = 50;
        
        if(p.getVelocityX()>0){
        	p.setX(player.getX()+dist);
        }else if(p.getVelocityX()<0){
        	p.setX(player.getX()-dist);
        }else if(p.getVelocityX() == 0){
        	p.setX(player.getX());
        }
        
        if(p.getVelocityY()>0){
        	p.setY(player.getY()+dist);
        }else if(p.getVelocityY()<0){
        	p.setY(player.getY()-dist);
        }else if(p.getVelocityY() == 0){
        	p.setY(player.getY());
        }
        map.addSprite(p);
		
	}