Attach wings via physics engine (they're now... odd.)
[featherfall2.git] / src / yuu / core.js
index b526131..1923d2c 100644 (file)
 
         size: { swizzle: "wh" },
 
 
         size: { swizzle: "wh" },
 
+        hw: { get: function () { return this.w / 2; } },
+        hh: { get: function () { return this.h / 2; } },
+
         contains: yf.argcd(
             function (p) { return this.contains(p.x, p.y); },
             function (x, y) {
         contains: yf.argcd(
             function (p) { return this.contains(p.x, p.y); },
             function (x, y) {