Difference between revisions of "Rotate-To Action"

From AgentCubes
Jump to navigation Jump to search
imported>Corrina
imported>Corrina
Line 7: Line 7:
 
{| cellpadding="10" cellspacing="0" border="0" width="100%"
 
{| cellpadding="10" cellspacing="0" border="0" width="100%"
 
|-
 
|-
| align="left" valign="top" width="80" | '''Definition:'''
+
| align="left" valign="top" width="80" | '''Definition:'''  
| align="left" valign="top" width="100%" | The '''Rotate-To''' action: rotates the agent according to specified pitch, role, and heading.
+
| 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="80" | '''Parameters:'''
+
| align="left" valign="top" width="80" | '''Parameters:'''  
 
| align="left" valign="top" width="100%" |  
 
| align="left" valign="top" width="100%" |  
Pitch: 
+
[[Formula parameter|roll angle]] ''number or VAT formula''
  
Role: 
+
[[Formula parameter|pitch angle]] ''number or VAT formula''
  
Heading:
+
[[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="100%" |
 +
|}
 +
 +
[[Category:AgentCubes_Actions]]
 
|-
 
|-
 
| align="left" valign="top" width="80" | '''Example:'''
 
| align="left" valign="top" width="80" | '''Example:'''

Revision as of 23:10, 20 April 2012

Rotate to.png

Rotate to expanded.png


Definition: The Rotate by action rotates an agent by roll, pitch, and heading angles, along the x, y, and z axis respectively.
Parameters:

roll angle number or VAT formula

pitch angle number or VAT formula

heading angle number or VAT formula

Additional Parameters: 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.
Example:

|- | align="left" valign="top" width="80" | Example: | align="left" valign="top" width="100%" | |}