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
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
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 |
isExpanded
Current expansion state of the particle.
Declaration
public bool isExpanded
Field Value
Type | Description |
---|---|
bool |
jointMovement
Data for the joint movements. Set None if there is no joint movement.
Declaration
public ParticleJointMovementState jointMovement
Field Value
Type | Description |
---|---|
ParticleJointMovementState |
posHead
Current head position of the particle.
Declaration
public Vector2Int posHead
Field Value
Type | Description |
---|---|
Vector2Int |
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 |