public Tomato(RenderContext rc, float3 position, float3 rotation, float3 scaleFactor,SceneRenderer sc, RigidBody tomatoRigidBody, Game game, DynamicWorld world)
     : base(rc, position, rotation, scaleFactor, sc)
 {
     TomatoRb = tomatoRigidBody;
     Radius = 2f;
     Tag = "Tomato";
     timer = 2.0f;
     _game = game;
     _world = world;
 }
 public Weapon(DynamicWorld world, Game game)
 {
     _click = true;
     _world = world;
     _sphereCollider = _world.AddSphereShape(1);
     _game = game;
     _srTomato = _game.SceneLoader.LoadTomato();
     Magazin = 10;
     imgData = game.RC.LoadImage("Assets/TomateOberflächenfarbe.jpg");
     RC = game.RC;
 }
        //neues level Laden
        public void LoadLevel()
        {
            _active = true;
            //Sichergehen, dass nicht schon ein Objekt des Typs DynamicWorld existiert
            DisposePhysic();
            //init Phyics
            World = new DynamicWorld();
            SphereCollider = World.AddSphereShape(1);

            //Startlevel und Punkte sezten
            Level = 1;
            Countdown = 60;

            //Waffe zum werfen der Tomaten
            Weapon = new Weapon(World, this);

            //Start Schafe instanziieren
            rand = new Random();
            for (int j = 0; j < 15; j++)
            {
                InstantiateSheep(FindPosition(j));
            }
        }
 public void InitWorld()
 {
     _world = new DynamicWorld();
     _numRB = 0;
 }