KIND Turntable

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (angle)
m (Corrected Snapmode type from boolean to integer.)
 
(One intermediate revision by one user not shown)
Line 11: Line 11:
  
  
  kind "turntable"
+
  kind                     "turntable"
  angle                                   0,10,20,30,40,50,60,180,190,200,210,220,230,240
+
  angle                   0,10,20,30,40,50,60,180,190,200,210,220,230,240
  frame-rate                             30
+
  frame-rate         30
  keyframes                               0,100,201,300,400,601
+
  keyframes           0,100,201,300,400,601
  looping                                 0
+
  looping               0
  snapmode                               1
+
  snapmode           1
  
  
Line 31: Line 31:
 
:Type: Floatlist
 
:Type: Floatlist
 
:Compulsory: No
 
:Compulsory: No
:Desc: A list of key frames in the animation (kin) file. (Question: how does this relate to the angles list?  The default values for both don't match up.)
+
:Desc: A list of key frames in the animation (kin) file.
 
====looping====
 
====looping====
 
:Type: Boolean
 
:Type: Boolean
Line 37: Line 37:
 
:Desc: ''TBD''
 
:Desc: ''TBD''
 
====snapmode====
 
====snapmode====
:Type: Boolean
+
:Type: Integer
 
:Compulsory: From 3.4
 
:Compulsory: From 3.4
:Desc: ''TBD'' (How does this relate to the snapmode in map-object?)
+
:Desc: ''TBD''
+
 
 
==Example Config.txt==
 
==Example Config.txt==
 
Sample [[config.txt file]] for a turntable asset, with the Standard Tags excluded for brevity:
 
Sample [[config.txt file]] for a turntable asset, with the Standard Tags excluded for brevity:

Latest revision as of 13:04, 23 July 2017

KIND Turntable provides the basis for turntables and transfer tables, where the attached track is moved via an animation or programmatic adjustment. Unlike KIND Industry, a fixed track does not provide any special meaning or functionality to its attached track - it is used only for positioning purposes.

Contents

[edit] KIND Hierarchy

[edit] Parent Classes

[edit] Child Classes

  • none.

[edit] Supported Tags

Each turntable asset supports the following tags. Each tag is shown here with its default value.


kind                     "turntable"
angle                    0,10,20,30,40,50,60,180,190,200,210,220,230,240
frame-rate          30
keyframes           0,100,201,300,400,601
looping                0
snapmode           1


[edit] angle

Type: Floatlist
Compulsory: No
Desc: A list of angles where the turntable will stop in a 360 degree circle.

[edit] frame-rate

Type: Integer
Compulsory: No
Desc: Frames per second (FPS) of the animation.

[edit] keyframes

Type: Floatlist
Compulsory: No
Desc: A list of key frames in the animation (kin) file.

[edit] looping

Type: Boolean
Compulsory: No
Desc: TBD

[edit] snapmode

Type: Integer
Compulsory: From 3.4
Desc: TBD

[edit] Example Config.txt

Sample config.txt file for a turntable asset, with the Standard Tags excluded for brevity:

TBD

[edit] Downloads

Attach sample files here?

[edit] Categories

Personal tools