@@ -149,7 +149,7 @@ class Area2D extends Object2D
db.push();
db.translate(this.position.x, this.position.y);
- db.rotate(this.rotationDegrees);
+ db.rotate(this.rotationDegrees / 180 * PI);
db.scale(this.scale.x, this.scale.y);
if (this.drawDebug)
@@ -173,7 +173,7 @@ class Object2D extends GameObject
this._draw(delta, db);
@@ -62,7 +62,7 @@ class Sprite2D extends Object2D
{
db.image(this.P5Image, 0, 0, this.P5Image.width, this.P5Image.height);
@@ -33,7 +33,7 @@ GameHandler._setup = function()
GameHandler.drawDebugBufferBounds(true);
textFont(AssetHandler.getP5FontByName("Lato"));
- test = new Area2D("myTest", SHAPES.ELLIPSE, new Ellipse(200, 400), true, true);
+ test = new Area2D("myTest", SHAPES.RECT, new Rect(200, 400), true, true);
test2 = new TestObj("myDummy");
test2.setPosition(600, 600);
test2.addChild(test);