-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: added gate and semaphore animations
- Loading branch information
1 parent
282800b
commit 028b652
Showing
15 changed files
with
417 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
204 changes: 204 additions & 0 deletions
204
src/main/resources/assets/opensignals/animations/railroadgate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,204 @@ | ||
{ | ||
"animations": { | ||
"railroad_gate/barrier_base_top": { | ||
"translationX": 0.5, | ||
"translationY": 1.1875, | ||
"translationZ": 0, | ||
"animationConfigs": [ | ||
{ | ||
"predicate": "config(BARRIER_OPEN.FALSE)", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 0, | ||
"pivotX": -0.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
}, | ||
{ | ||
"predicate": "config(BARRIER_OPEN.TRUE)", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 90, | ||
"pivotX": -0.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
} | ||
] | ||
}, | ||
"railroad_gate/barrier_1": { | ||
"translationX": 0.5, | ||
"translationY": 1.1875, | ||
"translationZ": 0, | ||
"animationConfigs": [ | ||
{ | ||
"predicate": "config(BARRIER_OPEN.FALSE)", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 0, | ||
"pivotX": 0.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
}, | ||
{ | ||
"predicate": "config(BARRIER_OPEN.TRUE)", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 90, | ||
"pivotX": 0.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
} | ||
] | ||
}, | ||
"railroad_gate/barrier_2": { | ||
"translationX": 0.5, | ||
"translationY": 1.1875, | ||
"translationZ": 0, | ||
"animationConfigs": [ | ||
{ | ||
"predicate": "config(BARRIER_OPEN.FALSE) && (config(BARRIER_LENGTH.L1) || config(BARRIER_LENGTH.L2) || config(BARRIER_LENGTH.L3) || config(BARRIER_LENGTH.L4) || config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 0, | ||
"pivotX": 1.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
}, | ||
{ | ||
"predicate": "config(BARRIER_OPEN.TRUE) && (config(BARRIER_LENGTH.L1) || config(BARRIER_LENGTH.L2) || config(BARRIER_LENGTH.L3) || config(BARRIER_LENGTH.L4) || config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 90, | ||
"pivotX": 1.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
} | ||
] | ||
}, | ||
"railroad_gate/barrier_3": { | ||
"translationX": 0.5, | ||
"translationY": 1.1875, | ||
"translationZ": 0, | ||
"animationConfigs": [ | ||
{ | ||
"predicate": "config(BARRIER_OPEN.FALSE) && (config(BARRIER_LENGTH.L2) || config(BARRIER_LENGTH.L3) || config(BARRIER_LENGTH.L4) || config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 0, | ||
"pivotX": 2.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
}, | ||
{ | ||
"predicate": "config(BARRIER_OPEN.TRUE) && (config(BARRIER_LENGTH.L2) || config(BARRIER_LENGTH.L3) || config(BARRIER_LENGTH.L4) || config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 90, | ||
"pivotX": 2.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
} | ||
] | ||
}, | ||
"railroad_gate/barrier_4": { | ||
"translationX": 0.5, | ||
"translationY": 1.1875, | ||
"translationZ": 0, | ||
"animationConfigs": [ | ||
{ | ||
"predicate": "config(BARRIER_OPEN.FALSE) && (config(BARRIER_LENGTH.L3) || config(BARRIER_LENGTH.L4) || config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 0, | ||
"pivotX": 3.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
}, | ||
{ | ||
"predicate": "config(BARRIER_OPEN.TRUE) && (config(BARRIER_LENGTH.L3) || config(BARRIER_LENGTH.L4) || config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 90, | ||
"pivotX": 3.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
} | ||
] | ||
}, | ||
"railroad_gate/barrier_5": { | ||
"translationX": 0.5, | ||
"translationY": 1.1875, | ||
"translationZ": 0, | ||
"animationConfigs": [ | ||
{ | ||
"predicate": "config(BARRIER_OPEN.FALSE) && (config(BARRIER_LENGTH.L4) || config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 0, | ||
"pivotX": 4.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
}, | ||
{ | ||
"predicate": "config(BARRIER_OPEN.TRUE) && (config(BARRIER_LENGTH.L4) || config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 90, | ||
"pivotX": 4.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
} | ||
] | ||
}, | ||
"railroad_gate/barrier_6": { | ||
"translationX": 0.5, | ||
"translationY": 1.1875, | ||
"translationZ": 0, | ||
"animationConfigs": [ | ||
{ | ||
"predicate": "config(BARRIER_OPEN.FALSE) && (config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 0, | ||
"pivotX": 5.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
}, | ||
{ | ||
"predicate": "config(BARRIER_OPEN.TRUE) && (config(BARRIER_LENGTH.L5) || config(BARRIER_LENGTH.L6))", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 90, | ||
"pivotX": 5.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
} | ||
] | ||
}, | ||
"railroad_gate/barrier_7": { | ||
"translationX": 0.5, | ||
"translationY": 1.1875, | ||
"translationZ": 0, | ||
"animationConfigs": [ | ||
{ | ||
"predicate": "config(BARRIER_OPEN.FALSE) && config(BARRIER_LENGTH.L6)", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 0, | ||
"pivotX": 6.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
}, | ||
{ | ||
"predicate": "config(BARRIER_OPEN.TRUE) && config(BARRIER_LENGTH.L6)", | ||
"mode": "ROTATION", | ||
"rotationAxis": "Z", | ||
"rotation": 90, | ||
"pivotX": 6.5, | ||
"pivotY": -0.1875, | ||
"pivotZ": 0 | ||
} | ||
] | ||
} | ||
} | ||
} |
79 changes: 0 additions & 79 deletions
79
src/main/resources/assets/opensignals/animations/railroadgateanimated.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.