Difference between revisions of "Rotate-By Action"

From AgentCubes
Jump to navigation Jump to search
imported>Corrina
imported>Loon911
m
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[image:Rotate by.png|200px]]
+
[[Image:Rotate by.png|200px|Rotate by.png]]  
  
[[image:Rotate by expanded.png|200px]]
+
[[Image:Rotate by expanded.png|200px|Rotate by expanded.png]]  
  
<table cellpadding="10" cellspacing="0" border="0" width="100%">
+
{| cellpadding="10" cellspacing="0" border="0" width="100%"
<tr>
+
|-
<td align="left" valign="top" width="80"><b>Definition:</b></td>
+
| align="left" valign="top" width="80" | '''Definition:'''
<td align="left" valign="top" width="100%">The <strong>Rotate by</strong> action rotates an agent by roll, pitch, and heading angles, along the x, y, and z axis respectively.</td>
+
| 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.
</tr>
+
|-
 +
| align="left" valign="top" width="80" | '''Parameters:'''
 +
| align="left" valign="top" width="100%" |
 +
[[Formula parameter|roll angle]]&nbsp;''number or [[VAT_Formula_parameter|VAT]] formula''
  
<tr>
+
[[Formula parameter|pitch angle]]&nbsp;''number or [[VAT_Formula_parameter|VAT]] formula''
<td align="left" valign="top" width="80"><b>Parameters:</b></td>
 
<td align="left" valign="top" width="100%">[[Formula parameter|roll angle]], [[Formula parameter|pitch angle]], [[Formula parameter|heading angle]]: Each are of type formula, and can include a number value or a formula.</td>
 
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Additional Parameters:</b></td>
 
<td align="left" valign="top" width="100%">[[Animation time parameter|time]]: the rotate-by action can make the movement happen instantly (if time is 0) or it can take any amount of time to perform the animation. The slider() option in the time parameter connects the animation time to the slider located above the world, next to the other world controls.</td>
 
</tr>
 
<tr>
 
<td align="left" valign="top" width="80"><b>Example:</b></td>
 
<td align="left" valign="top" width="100%">
 
  
[[Image:Rotate by action example.png|500px]]</td>
+
[[Formula parameter|heading angle]]&nbsp;''number or [[VAT_Formula_parameter|VAT]] formula''
</tr>
 
  
</table>
+
|-
 +
| 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%" | [[Image:Rotate by action example.png|500px]]
 +
|}
  
 
[[Category:AgentCubes_Actions]]
 
[[Category:AgentCubes_Actions]]

Latest revision as of 09:50, 28 June 2019

Rotate by.png

Rotate by 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: 500px