Changeset 7808 for 2016


Ignore:
Timestamp:
2016-07-05 17:30:17 (3 years ago)
Author:
sieerinn
Message:

Objektien asettelu korjattu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/TiledTileMap.cs

    r7734 r7808  
    101101            var len = Math.Sqrt(Math.Pow(obj.Width * 0.5, 2) + Math.Pow(obj.Height * 0.5, 2)); 
    102102            var positionFix = Vector.FromLengthAndAngle(len, angle + Angle.FromRadians(-Math.Atan2(obj.Height, obj.Width))); 
     103            positionFix += new Vector(0.0, obj.Height); 
    103104            method(topLeft + positionFix, obj.Width, obj.Height, angle, shape, obj.Type, obj.Properties); 
    104105        } 
Note: See TracChangeset for help on using the changeset viewer.