Differences
This shows you the differences between two versions of the page.
| blitz:rails [2026/07/04 15:19] – created gameboyadv4002 | blitz: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 |
| </ | </ | ||
| Rails are listed in a separate structure as objects in a given level' | Rails are listed in a separate structure as objects in a given level' | ||
| + | ==== UnitConfigName: | ||
| + | < | ||
| + | - Id: rail2 | ||
| + | IsClosed: false | ||
| + | IsLadder: false | ||
| + | IsLinkDest: false | ||
| + | LayerConfigName: | ||
| + | Links: {} | ||
| + | ModelName: null | ||
| + | Priority: !l 100 | ||
| + | RailPoints: | ||
| + | - CheckPointIndex: | ||
| + | ControlPoints: | ||
| + | - {X: 280.00000, Y: -25.00000, Z: 610.00000} | ||
| + | - {X: 280.00000, Y: -25.00000, Z: 610.00000} | ||
| + | Id: rail2/0 | ||
| + | LayerConfigName: | ||
| + | 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: | ||
| + | UseOffset: false | ||
| + | - CheckPointIndex: | ||
| + | ControlPoints: | ||
| + | - {X: 280.00000, Y: -25.00000, Z: 610.00000} | ||
| + | - {X: 280.00000, Y: -25.00000, Z: 610.00000} | ||
| + | Id: rail2/1 | ||
| + | LayerConfigName: | ||
| + | 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: | ||
| + | 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: | ||
| + | </ | ||
| + | |||
| + | 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, | ||
| + | |||
| + | ==== 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: | ||
| </ | </ | ||
| - | - ConstantVelUnitLength | + | * ConstantVelUnitLength |
| - | - 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. | + | |