From 282d06451a942c86f8b43d06b25ccd28fff1680c Mon Sep 17 00:00:00 2001 From: Mar Canet Sola Date: Mon, 9 Jun 2025 23:52:54 +0300 Subject: [PATCH] Update ofxBox2dRect.h Add a setWidth and setHeight to update size after setup --- src/ofxBox2dRect.h | 3 +++ 1 file changed, 3 insertions(+) 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();