Wiki-home » About VastPark » Platform » VastWorlds platform » Developer's guide » Plugins » List of Plugins »
FlockingPlugin¶
IMML example¶
Properties¶
Vector3 PerceivedCentre¶
- Summary: The perceived centre of the flock at a given time
float SmallDistance¶
float MaxVelocity¶
float MinVelocity¶
bool EnableBounds¶
- Summary: When true, caps the flock within the specified bounds
Vector3 MaxBounds¶
Vector3 MinBounds¶
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¶
Functions¶
void SetPointOfInterest(VastPark.Imml.Proxy.ImmlElement proxiedElement)¶
- Summary: Set a point of interest for the boids.
- Parameters
void AddPlaceToAvoid(VastPark.Imml.Proxy.ImmlElement proxiedElement)¶
void AddPerch(VastPark.Imml.Proxy.ImmlElement proxiedElement)¶
- Summary: Add a place for boids to perch on at random when within range
- Parameters
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()¶
void AddElement(ImmlElement element)¶
void Update()¶
void Dispose()¶
void SetParkEngine(IParkEngine parkEngine)¶