Search Results for

    Show / Hide Table of Contents

    Interface IParticleObject

    Represents an object in the particle system that can be detected and moved around by the particles.

    Namespace: AS2.Sim
    Assembly: .dll
    Syntax
    public interface IParticleObject

    Properties

    | Edit this page View Source

    Identifier

    The object's identifier. Can be unique to distinguish all objects from each other or specify different types or groups of objects.

    Declaration
    int Identifier { get; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    IsAnchor()

    Checks whether this object is currently the anchor.

    Note that this information is already available in the same round in which the object was made the anchor (unlike, e.g., particle attributes). This depends on the order in which the particles are activated, which the particles can neither control nor find out about.

    Declaration
    bool IsAnchor()
    Returns
    Type Description
    bool

    true if and only if the object is the system's anchor.

    | Edit this page View Source

    MakeAnchor()

    Turns this object into the system's anchor.

    Declaration
    void MakeAnchor()
    | Edit this page View Source

    ReleaseBonds()

    Triggers this object to release all bonds to other objects.

    Declaration
    void ReleaseBonds()
    | Edit this page View Source

    SetColor(Color)

    Gives the object a new color. If multiple particles set the same object's color, the one set by the last simulated particle will be used.

    Declaration
    void SetColor(Color color)
    Parameters
    Type Name Description
    Color color

    The new color of the object.

    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX