Changeset 3551 for 2012


Ignore:
Timestamp:
2012-07-04 14:59:46 (7 years ago)
Author:
jomannin
Message:

Talletus.

Location:
2012/27/JoonasM
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/27/JoonasM/Pong/Pong/Pong/Pong.cs

    r3436 r3551  
    1616 
    1717    PhysicsObject pallo; 
     18    PhysicsObject pallo2; 
    1819    PhysicsObject maila1; 
    1920    PhysicsObject maila2; 
     
    4445        Add(pallo); 
    4546        AddCollisionHandler(pallo, KasittelePallonTormays); 
     47 
     48        pallo2 = new PhysicsObject(40.0, 40.0); 
     49        pallo2.Shape = Shape.Circle; 
     50        pallo2.X = -200.0; 
     51        pallo2.Y = 1.0; 
     52        pallo2.Restitution = 1.0; 
     53        pallo2.KineticFriction = 0.0; 
     54        pallo2.MomentOfInertia = Double.PositiveInfinity; 
     55        Add(pallo2); 
     56        AddCollisionHandler(pallo2, KasittelePallonTormays); 
    4657 
    4758        maila1 = LuoMaila(Level.Left + 20.0, 0.0); 
Note: See TracChangeset for help on using the changeset viewer.