Search Results for

    Show / Hide Table of Contents

    Struct ParticleMovementState

    Contains the position and movement information for a single particle in a single round.

    Namespace: AS2.Visuals
    Assembly: .dll
    Syntax
    public struct ParticleMovementState

    Constructors

    | Edit this page View Source

    ParticleMovementState(Vector2Int, Vector2Int, bool, int, ParticleJointMovementState)

    Declaration
    public ParticleMovementState(Vector2Int posHead, Vector2Int posTail, bool isExpanded, int expansionOrContractionDir, ParticleJointMovementState jointMovement)
    Parameters
    Type Name Description
    Vector2Int posHead
    Vector2Int posTail
    bool isExpanded
    int expansionOrContractionDir
    ParticleJointMovementState jointMovement

    Fields

    | Edit this page View Source

    expansionOrContractionDir

    The expansion direction of the particle. For contractions just use the expansion direction of the particle before the contraction.

    Declaration
    public int expansionOrContractionDir
    Field Value
    Type Description
    int
    | Edit this page View Source

    isExpanded

    Current expansion state of the particle.

    Declaration
    public bool isExpanded
    Field Value
    Type Description
    bool
    | Edit this page View Source

    jointMovement

    Data for the joint movements. Set None if there is no joint movement.

    Declaration
    public ParticleJointMovementState jointMovement
    Field Value
    Type Description
    ParticleJointMovementState
    | Edit this page View Source

    posHead

    Current head position of the particle.

    Declaration
    public Vector2Int posHead
    Field Value
    Type Description
    Vector2Int
    | Edit this page View Source

    posTail

    Current tail position of the particle. For contracted particles just use the same position as the head.

    Declaration
    public Vector2Int posTail
    Field Value
    Type Description
    Vector2Int
    • 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