≪

Differences

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

Link to this comparison view

blitz:rails [2026/07/04 15:19] – created gameboyadv4002blitz:rails [2026/09/28 13:54] (current) – gameboyadv4002
Line 6: Line 6:
 ===== Rails ===== ===== Rails =====
 <WRAP center round help 60%> <WRAP center round help 60%>
-Please help out this wiki by filling out details surrounding rails and there parameters+Please help out this wiki by filling out details surrounding rails and their parameters
 </WRAP> </WRAP>
  
 Rails are listed in a separate structure as objects in a given level's byaml file. They come in different types, mainly differentiated by colour, although this writer does not understand the different between them. Rails are listed in a separate structure as objects in a given level's byaml file. They come in different types, mainly differentiated by colour, although this writer does not understand the different between them.
  
 +==== UnitConfigName: Rail ====
 +<code>
 +    - Id: rail2
 +      IsClosed: false
 +      IsLadder: false
 +      IsLinkDest: false
 +      LayerConfigName: Cmn
 +      Links: {}
 +      ModelName: null
 +      Priority: !l 100
 +      RailPoints:
 +        - CheckPointIndex: !l 0
 +          ControlPoints:
 +            - {X: 280.00000, Y: -25.00000, Z: 610.00000}
 +            - {X: 280.00000, Y: -25.00000, Z: 610.00000}
 +          Id: rail2/0
 +          LayerConfigName: Cmn
 +          Links: {}
 +          OffsetX: 0.00000
 +          OffsetY: 0.00000
 +          OffsetZ: 0.00000
 +          Rotate: {X: 0.00000, Y: 0.00000, Z: 0.00000}
 +          Scale: {X: 1.00000, Y: 1.00000, Z: 1.00000}
 +          Translate: {X: 280.00000, Y: -25.00000, Z: 490.00000}
 +          UnitConfigName: RailPoint
 +          UseOffset: false
 +        - CheckPointIndex: !l 0
 +          ControlPoints:
 +            - {X: 280.00000, Y: -25.00000, Z: 610.00000}
 +            - {X: 280.00000, Y: -25.00000, Z: 610.00000}
 +          Id: rail2/1
 +          LayerConfigName: Cmn
 +          Links: {}
 +          OffsetX: 0.00000
 +          OffsetY: 0.00000
 +          OffsetZ: 0.00000
 +          Rotate: {X: 0.00000, Y: 0.00000, Z: 0.00000}
 +          Scale: {X: 1.00000, Y: 1.00000, Z: 1.00000}
 +          Translate: {X: 280.00000, Y: -25.00000, Z: 610.00000}
 +          UnitConfigName: RailPoint
 +          UseOffset: false
 +      RailType: Bezier
 +      Rotate: {X: 0.00000, Y: 0.00000, Z: 0.00000}
 +      Scale: {X: 1.00000, Y: 1.00000, Z: 1.00000}
 +      Translate: {X: 0.00000, Y: 0.00000, Z: 0.00000}
 +      UnitConfigName: Rail
 +</code>
 +
 +The location of the rail itself does not matter, only that of the given RailPoints. You can use rails to rotate and even resize an object as well as dictate its path.
 +
 +RailType can either be set to Linear or Bezier. If a rail is linear, you do not need ControlPoints, and as a result are restricted to straight lines. Bezier curves use ControlPoints to control what a RailPoint's given curve looks like.
 +
 +==== RailableParams ====
 Objects are attached to rails using the RailableParams--Rail link. In the byaml it looks like this: Objects are attached to rails using the RailableParams--Rail link. In the byaml it looks like this:
  
Line 28: Line 81:
 </code> </code>
  
-- ConstantVelUnitLength describes the speed at which the object moves along the rail, with Vel performing some yet unknown role. +  * ConstantVelUnitLength and MoveFrame describe the speed at which the object moves along the rail, with Vel performing some yet unknown role. 
-- Patrol describes how many times and in what way the objects moves along the rail. 0 means it only moves once, 1 means it will start its cycle again, 2 means it will move back the way it came until it finds its start point.+  * Patrol describes how many times and in what way the objects moves along the rail. 0 means it only moves once, 1 means it will start its cycle again, 2 means it will move back the way it came until it finds its start point.