Perch

The perch module allows agents to land  on an height field and take off. 



AttributesTypeOverridableDescription
activeboolyesThe active state of the agents.
positionMetadataNamestringnoThe metadata used as perching location
upVectorModeintno

Defines the source of the landing up vector:

  • Agent Up Metadata (0), the landing up vector will be the agent up vector
  • User Value (1), the landing up vector is a value given by the user
upVectorvector3noThe up vector used when the upVectorMode is set to 1 (User Value)
upMetadataNamestringnoThe metadata used representing the up vector at the perching location. If this value is specified and this metadata exists on the agent, it will override the other up vector settings.
landingDistancedoubleyesThe landing only starts when the distance from the target point and the agent is less than this distance
perchStateintyesThe state that will be used after landing
sightAngledoublenoIf the target point is outside this view angle the landing does not take place
takeOffboolyesIf on, the agent will take off after a timer has elapsed or the driving metadata is set to true.
useTakeOffClipOnlyboolyesIf on, the position of the agent won't be interpolated at take off, but only the clip animation will be used.
takeOffTimervector2noA random timer at the end of which the agent will take off. 
takeOffDistancevector2noAt take off time a random distance within this range is picked and used to interpolate the agent position
takeOffMaxAngledoublenoThe max angle allowed when calculating a take off vector from the ground contact point and its normal
takeOffStateintyesThe state that will be used after taking off
takeOffMetadatastringnoIf a bool metadata name is specified then the agent is going to take off when its value is true
avoidLandingTimervector2noA random timer that will make sure an agent will not perch again until the timer is elapsed after take off
seedintno Random seed

Copyright © 2017, Toolchefs LTD.