Changeset 8149 for 2016/30


Ignore:
Timestamp:
2016-07-27 13:13:03 (3 years ago)
Author:
almajono
Message:
 
Location:
2016/30/AleksiN/name
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2016/30/AleksiN/name/name/name/name.cs

    r8145 r8149  
    3232        //Add(smoke); 
    3333 
    34         PhysicsObject bike = new PhysicsObject(250.0, 250.0); 
    35         bike.Image = motorbike; 
    36         Add(bike); 
    37         bike.IgnoresCollisionResponse = true; 
    38  
    3934    } 
    4035 
     
    4338        PhysicsObject leftTire = new PhysicsObject(50.0, 50.0, Shape.Circle); 
    4439        PhysicsObject rightTire = new PhysicsObject(50.0, 50.0, Shape.Circle); 
     40        PhysicsObject bike = new PhysicsObject(200.0, 200.0); 
    4541        leftTire.X = -65.0; 
    4642        leftTire.Y = -250.0; 
    4743        rightTire.X = 65.0; 
    4844        rightTire.Y = -250.0; 
     45        bike.X = 0; 
     46        bike.Y = -200; 
    4947        leftTire.Image = tire; 
    5048        rightTire.Image = tire; 
    51         tires = new PhysicsStructure(leftTire, rightTire); 
     49        bike.Image = motorbike; 
     50        tires = new PhysicsStructure(leftTire, rightTire, bike); 
    5251        Add(tires); 
     52        Add(bike); 
    5353    } 
    5454    void Keys() 
Note: See TracChangeset for help on using the changeset viewer.