Skip to content

How to destroy particels that are off screen #3

@ff6347

Description

@ff6347

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions