1
0
mirror of https://github.com/Mojang/bedrock-samples.git synced 2024-11-13 14:49:28 +00:00
bedrock-samples/resource_pack/animations/strider.animation.json
Mike Ammerlaan a3b394c507 1.19.30
Initial layout
2022-09-23 06:24:26 -07:00

74 lines
2.9 KiB
JSON

{
"format_version": "1.8.0",
"animations": {
"animation.strider.look_at_target.default" : {
"loop" : true,
"bones" : {
"body" : {
"relative_to" : {
"rotation" : "entity"
},
"rotation" : [ "query.target_x_rotation", "query.target_y_rotation", 0.0 ]
}
}
},
"animation.strider.walk": {
"loop": true,
"bones": {
"right_leg": {
"rotation": ["Math.sin(query.modified_distance_moved * variable.speed * 0.5 + 180) * 114.592 * variable.animation_speed", 0, "10 * Math.cos(query.modified_distance_moved * variable.speed * 0.5f + 180) * variable.animation_speed"],
"position": [0, "-2 * Math.sin(query.modified_distance_moved * variable.speed * 0.5) * 2 * variable.animation_speed", 0]
},
"left_leg": {
"rotation": ["Math.sin(query.modified_distance_moved * variable.speed * 0.5) * 114.592 * variable.animation_speed", 0, "10 * Math.cos(query.modified_distance_moved * variable.speed * 0.5f) * variable.animation_speed"],
"position": [0, "-2 * Math.sin(query.modified_distance_moved * variable.speed * 0.5 + 180) * 2 * variable.animation_speed", 0]
},
"body": {
"rotation": [0, 0, "5.72958 * Math.sin(query.modified_distance_moved * variable.speed) * 4 * variable.animation_speed"],
"position": [0, "-2 * Math.cos(query.modified_distance_moved * variable.speed) * 2 * variable.animation_speed", 0]
},
"bristle1": {
"rotation": [0, 0, "variable.bristle_flow * 74.4845"]
},
"bristle2": {
"rotation": [0, 0, "variable.bristle_flow * 68.7549"]
},
"bristle3": {
"rotation": [0, 0, "variable.bristle_flow * 34.3775"]
},
"bristle3": {
"rotation": [0, 0, "variable.bristle_flow * 34.3775"]
},
"bristle4": {
"rotation": [0, 0, "variable.bristle_flow * 68.7549"]
},
"bristle5": {
"rotation": [0, 0, "variable.bristle_flow * 74.4845"]
}
}
},
"animation.strider.bristle_flow": {
"loop": true,
"bones": {
"bristle0": {
"rotation": [0, 0, "2.864789 * variable.bristle_range_mod * Math.sin(query.life_time * 20 * variable.bristle_speed_mod * -22.9183)"]
},
"bristle1": {
"rotation": [0, 0, "5.72958 * variable.bristle_range_mod * Math.sin(query.life_time * 20 * variable.bristle_speed_mod * 11.4592)"]
},
"bristle2": {
"rotation": [0, 0, "5.72958 * variable.bristle_range_mod * Math.sin(query.life_time * 20 * variable.bristle_speed_mod * 22.9183)"]
},
"bristle3": {
"rotation": [0, 0, "5.72958 * variable.bristle_range_mod * Math.sin(query.life_time * 20 * variable.bristle_speed_mod * 22.9183)"]
},
"bristle4": {
"rotation": [0, 0, "5.72958 * variable.bristle_range_mod * Math.sin(query.life_time * 20 * variable.bristle_speed_mod * 11.4592)"]
},
"bristle5": {
"rotation": [0, 0, "2.864789 * variable.bristle_range_mod * Math.sin(query.life_time * 20 * variable.bristle_speed_mod * -22.9183)"]
}
}
}
}
}