Difference between revisions of "Move-Random-On-A Action"

From AgentCubes
Jump to navigation Jump to search
imported>Loon911
imported>Loon911
Line 6: Line 6:
 
|-
 
|-
 
| align="left" valign="top" width="80" | '''Definition:'''  
 
| align="left" valign="top" width="80" | '''Definition:'''  
| align="left" valign="top" width="100%" | The '''Rotate by''' action rotates an agent by roll, pitch, and heading angles, along the x, y, and z axis respectively.
+
| align="left" valign="top" width="100%" | '''Move-Random '''Action: ''When conditions are satisfied, this action moves an agent randomly any number of cells away from the original location as specified by a number or formula in the Formula parameter.''
 
|-
 
|-
 
| align="left" valign="top" width="80" | '''Parameters:'''  
 
| align="left" valign="top" width="80" | '''Parameters:'''  
 +
| align="left" valign="top" width="100%" | [[VAT Formula parameter|formula]]: ''number or VAT Formula''
 +
|-
 +
| align="left" valign="top" width="80" | '''Additional Parameters:'''
 
| align="left" valign="top" width="100%" |  
 
| align="left" valign="top" width="100%" |  
[[Formula parameter|roll angle]] ''number or VAT formula''  
+
[[Animation parameter|animation]]: ''accelerated or constant speed''  
  
[[Formula parameter|pitch angle]] ''number or VAT formula''  
+
[[Animation time parameter|time]]: ''movement happens instantly (if time is 0) or the slider() option connects the animation time to the slider located above the world.''  
  
[[Formula parameter|heading angle]] ''number or VAT formula''
 
 
|-
 
| align="left" valign="top" width="80" | '''Additional Parameters:'''
 
| align="left" valign="top" width="100%" | [[Animation time parameter|time]]: ''If time is 0, movement happens instantly. The slider() option in the time parameter connects the animation time to the slider located above the world.''
 
 
|-
 
|-
 
| align="left" valign="top" width="80" | '''Example:'''  
 
| align="left" valign="top" width="80" | '''Example:'''  
| align="left" valign="top" width="100%" | [[Image:Rotate by action example.png|500px]]
+
| align="left" valign="top" width="100%" |  [[Image:Move random action example.png|500px]]
 
|}
 
|}
  
 
[[Category:AgentCubes_Actions]]
 
[[Category:AgentCubes_Actions]]

Revision as of 23:21, 16 June 2019

Move-random-on-a1.PNG

Move-random-on-a2.PNG

Definition: Move-Random Action: When conditions are satisfied, this action moves an agent randomly any number of cells away from the original location as specified by a number or formula in the Formula parameter.
Parameters: formula: number or VAT Formula
Additional Parameters:

animation: accelerated or constant speed

time: movement happens instantly (if time is 0) or the slider() option connects the animation time to the slider located above the world.

Example:  500px