Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ardiscript:animate [2019/08/14 01:57]
optrix [Paramaters]
ardiscript:animate [2019/09/18 00:10] (current)
optrix
Line 25: Line 25:
 Default: None// Default: None//
  
-This specifies the //​rotation//​ Keyframes for which the object is to berotated. Keyframes are entered as "​time,​x,​y,​z"​ co-ordinates that are **space** delimited. For example a value of **"​2,​0,​0,​90 4,0,0,180 6,​90,​0,​180"​** will cause the object to rotate to 0,0,90 at 2 seconds, 0,0,180 at 4 seconds and 90,0,180 at 6 seconds. ​+This specifies the //​rotation//​ Keyframes for which the object is to be rotated. Keyframes are entered as "​time,​x,​y,​z"​ co-ordinates that are **space** delimited. For example a value of **"​2,​0,​0,​90 4,0,0,180 6,​90,​0,​180"​** will cause the object to rotate to 0,0,90 at 2 seconds, 0,0,180 at 4 seconds and 90,0,180 at 6 seconds. ​
  
 ===ScaleFrames=== ===ScaleFrames===
Line 36: Line 36:
 ====Examples==== ====Examples====
  
 +<​code>​
 +  <addmesh name="​Tool"​ file="​Tool.fbx"​ Offset="​50,​55,​-1"​ Rotation="​-90,​90,​0"​ Scale="​0.5,​0.5,​0.5"/>​
 +  <animate PositionFrames="​2,​-20,​58,​-1 3,-20,58,-1 4,​-20,​58,​14"​ RotationFrames="​5,​-90,​90,​0 7,​0,​90,​0"​ target="​Tool"/>​
 +</​code>​
 +
 +The above code will create an object attached to the marker called "​Tool"​. It will then move to position **-20,​58,​-1** after 2 seconds, **-20,​58,​-1** after 3 seconds and **-20,​58,​14** after 4 seconds. It will then rotate 90 degrees on the x axis from **-90,​90,​0** to **0,90,0** from 5 to 7 seconds. The final animation displays a tool being inserted into a part of the real world object that this marker is placed on and turning 90 degrees anti-clockwise.
 ====See Also==== ====See Also====
 +[[addmesh_ar]] [[addshape_ar]] [[indicator_ar]]