ofxLiquidFun icon indicating copy to clipboard operation
ofxLiquidFun copied to clipboard

How to destroy particels that are off screen

Open ff6347 opened this issue 10 years ago • 0 comments

The title says it. I saw I can set the lifetime but how can I destroy particles that are offscreen?

box2d has

bool ofxBox2dBaseShape::shouldRemoveOffScreen(ofPtr<ofxBox2dBaseShape> shape) {
    return !ofRectangle(0, 0, ofGetWidth(), ofGetHeight()).inside(shape.get()->getPosition());
}

How can I add this to liquidFun?

ff6347 avatar May 04 '15 12:05 ff6347