Changeset 8201 for 2016/30


Ignore:
Timestamp:
2016-07-28 13:20:38 (3 years ago)
Author:
almajono
Message:
 
Location:
2016/30/AleksiN/name/name/name
Files:
5 edited

Legend:

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

    r8200 r8201  
    3535        Timer smokeTimer = new Timer(); 
    3636        smokeTimer.Interval = 0.1; 
    37         smokeTimer.Timeout += delegate { smoke.Position = bike.Objects[1].Position; }; 
     37        smokeTimer.Timeout += delegate { smoke.Position = bike.Objects[0].Position; }; 
    3838        smokeTimer.Start(); 
    3939        Add(smoke); 
     
    6161    void CreatePlayer() 
    6262    { 
    63          leftTire = new PhysicsObject(57.5, 57.5, Shape.Circle); 
    64          rightTire = new PhysicsObject(57.5, 57.5, Shape.Circle); 
     63        leftTire = new PhysicsObject(57.5, 57.5, Shape.Circle); 
     64        rightTire = new PhysicsObject(57.5, 57.5, Shape.Circle); 
    6565        bikePhysicsObject = new PhysicsObject(250.0, 200.0); 
    6666        leftTire.X = -70.0; 
     
    7373        rightTire.Image = tire; 
    7474        bikePhysicsObject.Image = motorbike; 
    75         this.bike = new PhysicsStructure(rightTire, leftTire, bikePhysicsObject); 
     75        this.bike = new PhysicsStructure(leftTire, rightTire, bikePhysicsObject); 
    7676        bikePhysicsObject.IgnoresCollisionResponse = true; 
    7777        Add(this.bike); 
    7878        Add(bikePhysicsObject); 
    7979        bike.KineticFriction = 1.0; 
     80        bike.AngularDamping = 0.99; 
     81        bike.LinearDamping = 1; 
    8082        bike.Restitution = 0.2; 
    8183        bike.Y += 100; 
Note: See TracChangeset for help on using the changeset viewer.