Skip to content

particle

ParticleRequirement

Bases: BaseObjectRequirement

Class for sanity checking objects that requires particle systems

Source code in omnigibson/object_states/particle.py
class ParticleRequirement(BaseObjectRequirement):
    """
    Class for sanity checking objects that requires particle systems
    """

    @classmethod
    def is_compatible(cls, obj, **kwargs):
        from omnigibson.macros import gm

        if not gm.USE_GPU_DYNAMICS:
            return False, f"Particle systems are not enabled when GPU dynamics is off."

        return True, None