diff --git a/src/ofxBox2dRect.h b/src/ofxBox2dRect.h index 815dbe7..9312fd1 100755 --- a/src/ofxBox2dRect.h +++ b/src/ofxBox2dRect.h @@ -24,6 +24,9 @@ class ofxBox2dRect : public ofxBox2dBaseShape { //------------------------------------------------ float getWidth() { return width * 2; } float getHeight() { return height * 2; } + + void setWidth(float w) { width=w/2; } + void setHeight(float h) { height=h/2; } void updateMesh(); void draw();