Proximity metadata

The proximity metadata module creates or adds a new metadata on the group agents based on the proximity to agents of other groups.



Attributes

AttributesTypeOverridableDescription
useInfluenceAgentGroupsOnlyboolnoIf on, only the agents specified within the agentGroups list are used.
radiusdoublenoProximity radius
namestringnoMetadata name
typeintnoMetadata type id, use -1 to copy the metadata
copyMetadatastringnoThe name of the metadata to be copied
sightdoubleno

Sight factor. Values close to 0 make the sight wider, while the sight gets narrower for values close to 1.
When the sight value is set to 0 the agents are visible as soon as their distance from the current agent is smaller than the proximity radius.

boolValueboolyesMetadata boolean value
intValueintyesMetadata int value
doubleValuedoubleyesMetadata double value
vec3Valuevector3yesMetadata vector 3 value
quatValuevector3yesMetadata quaternion value -  This value is exposed as a euler rotation then inside the module is converted to a quaternion
matrixValuematrixyesMetadata matrix value
stringValuestringyesMetadata string value
agentTypesstring arraynoOnly if agent type specified will be used, if the list is empty then all agent types will be used.
agentGroupsstring arraynoThe target agent groups to be used. If empty this module does nothing.
debugboolnoEnables module debug drawing. 
blendInintyesNumber of frames used to interpolate the metadata value when the agent enters the proximity of another agent
blendOutintyesNumber of frames used to interpolate the metadata value when the agent exits the proximity of another agent
randomInDelayintyesNumber of frames used as delay to change the metadata value when the agent enters the proximity of another agent
randomOutDelayintyesNumber of frames used as delay to change the metadata value when the agent exits the proximity of another agent
keepMetaboolyesIf on, the module will store the previous metadata value of the agent as soon as the metadata changes. So the agent metadata keeps the new value even when it exits the proximity of another agent
avoidMutualEffectboolyesIf on, only one agent will affect another one.


Copyright © 2017, Toolchefs LTD.