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 SourceIdentifier
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 SourceIsAnchor()
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 |
|
MakeAnchor()
Turns this object into the system's anchor.
Declaration
void MakeAnchor()
ReleaseBonds()
Triggers this object to release all bonds to other objects.
Declaration
void ReleaseBonds()
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. |