Esempio n. 1
0
        private void AddObstacle(Obstacle o)
        {
            HookPointBody b;
            //////////////////////////
            //Create the Obstacle Body
            //////////////////////////
            /////////////////////////////////
            //Set points at queue postion 
            /////////////////////////////////
            b = new HookPointBody(World, o.initialPosition, o._hookPointBodyType);

            CircleShape CircleShape = new CircleShape(1f, 1f);
            //Vertices varray = new Vertices(10);
            //CircleShape CircleShape = new PolygonShape(varray, 1f);
            Fixture fixture = b.CreateFixture(CircleShape);
            fixture.Body.BodyType = BodyType.Kinematic;

            ///////////////////////////////////////
            //Set the created body of our hookpoint
            ///////////////////////////////////////
            o._hookPointBody = b;

            ///////////////////////////////
            //Add hookpoints to our manager
            ///////////////////////////////
            hookpointmanager.AddObstacle(o);
        }
Esempio n. 2
0
 public void AddObstacle(Obstacle obstacle)
 {
     ObstacleManager.AddObstacle(obstacle);
 }
Esempio n. 3
0
 public void AddObstacle(Obstacle obstacle)
 {
     Obstacles.Add(obstacle);
 }