FlockingPlugin

IMML example



	

Properties

Vector3 PerceivedCentre

  • Summary: The perceived centre of the flock at a given time

float SmallDistance

  • Summary:

float MaxVelocity

  • Summary:

float MinVelocity

  • Summary:

bool EnableBounds

  • Summary: When true, caps the flock within the specified bounds

Vector3 MaxBounds

  • Summary:

Vector3 MinBounds

  • Summary:

bool EnablePerching

  • Summary: When true, boids will occasionally land on a surface for a period of time

int MinPerchTime

  • Summary: Milliseconds that represents the minimum amount of time to perch for

int MaxPerchTime

  • Summary: Milliseconds that represent the maximum amount of time to perch for

string ElementPerched

  • Summary: Fires when an element becomes perched

string ElementLeftPerch

  • Summary: Fires when an element stops being perched

bool Enabled

  • Summary:

Functions

void SetPointOfInterest(VastPark.Imml.Proxy.ImmlElement proxiedElement)

  • Summary: Set a point of interest for the boids.
  • Parameters
    • proxiedElement:

void AddPlaceToAvoid(VastPark.Imml.Proxy.ImmlElement proxiedElement)

  • Summary:
  • Parameters

void AddPerch(VastPark.Imml.Proxy.ImmlElement proxiedElement)

  • Summary: Add a place for boids to perch on at random when within range
  • Parameters
    • proxiedElement:

void Scatter(float msToScatterFor, float scatterStrength)

  • Summary: Scatter the flock for the specified number of milliseconds
  • Parameters
    • msToScatterFor:
    • scatterStrength: The amount of scatter to introduce

void Load()

  • Summary:
  • Parameters

void AddElement(ImmlElement element)

  • Summary:
  • Parameters

void Update()

  • Summary:
  • Parameters

void Dispose()

  • Summary:
  • Parameters

void SetParkEngine(IParkEngine parkEngine)

  • Summary:
  • Parameters