Skip to content

particle_system_base

BaseParticleSystem

Bases: BaseSystem

Global system for modeling particles, e.g.: dirt, water, etc.

Source code in systems/particle_system_base.py
class BaseParticleSystem(BaseSystem):
    """
    Global system for modeling particles, e.g.: dirt, water, etc.
    """

    @classproperty
    def n_particles(cls):
        """
        Returns:
            int: Number of active particles in this system
        """
        raise NotImplementedError()

    @classproperty
    def color(cls):
        """
        Returns:
            3-array: (R,G,B) color of the particles generated from this system
        """
        raise NotImplementedError()

color()

Returns:

Type Description

3-array: (R,G,B) color of the particles generated from this system

Source code in systems/particle_system_base.py
@classproperty
def color(cls):
    """
    Returns:
        3-array: (R,G,B) color of the particles generated from this system
    """
    raise NotImplementedError()

n_particles()

Returns:

Name Type Description
int

Number of active particles in this system

Source code in systems/particle_system_base.py
@classproperty
def n_particles(cls):
    """
    Returns:
        int: Number of active particles in this system
    """
    raise NotImplementedError()