1231 lines
91 KiB
JSON
1231 lines
91 KiB
JSON
{
|
|
"version": "1.0",
|
|
"root": {
|
|
"id": "userAnimStateMachine",
|
|
"type": "stateMachine",
|
|
"data": {
|
|
"currentState": "userAnimNone",
|
|
"states": [
|
|
{
|
|
"id": "userAnimNone",
|
|
"interpTarget": 6,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "userAnimA", "state": "userAnimA" },
|
|
{ "var": "userAnimB", "state": "userAnimB" }
|
|
]
|
|
},
|
|
{
|
|
"id": "userAnimA",
|
|
"interpTarget": 6,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "userAnimNone", "state": "userAnimNone" },
|
|
{ "var": "userAnimB", "state": "userAnimB" }
|
|
]
|
|
},
|
|
{
|
|
"id": "userAnimB",
|
|
"interpTarget": 6,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "userAnimNone", "state": "userAnimNone" },
|
|
{ "var": "userAnimA", "state": "userAnimA" }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "userAnimNone",
|
|
"type": "overlay",
|
|
"data": {
|
|
"alpha": 1.0,
|
|
"alphaVar": "ikOverlayAlpha",
|
|
"boneSet": "fullBody"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "ik",
|
|
"type": "inverseKinematics",
|
|
"data": {
|
|
"solutionSource": "relaxToUnderPoses",
|
|
"solutionSourceVar": "solutionSource",
|
|
"targets": [
|
|
{
|
|
"jointName": "Hips",
|
|
"positionVar": "hipsPosition",
|
|
"rotationVar": "hipsRotation",
|
|
"typeVar": "hipsType",
|
|
"weightVar": "hipsWeight",
|
|
"weight": 1.0,
|
|
"flexCoefficients": [1]
|
|
},
|
|
{
|
|
"jointName": "RightHand",
|
|
"positionVar": "rightHandPosition",
|
|
"rotationVar": "rightHandRotation",
|
|
"typeVar": "rightHandType",
|
|
"weightVar": "rightHandWeight",
|
|
"weight": 1.0,
|
|
"flexCoefficients": [1, 0.5, 0.5, 0.2, 0.01, 0.005, 0.001, 0.0, 0.0],
|
|
"poleVectorEnabledVar": "rightHandPoleVectorEnabled",
|
|
"poleReferenceVectorVar": "rightHandPoleReferenceVector",
|
|
"poleVectorVar": "rightHandPoleVector"
|
|
},
|
|
{
|
|
"jointName": "LeftHand",
|
|
"positionVar": "leftHandPosition",
|
|
"rotationVar": "leftHandRotation",
|
|
"typeVar": "leftHandType",
|
|
"weightVar": "leftHandWeight",
|
|
"weight": 1.0,
|
|
"flexCoefficients": [1, 0.5, 0.5, 0.2, 0.01, 0.005, 0.001, 0.0, 0.0],
|
|
"poleVectorEnabledVar": "leftHandPoleVectorEnabled",
|
|
"poleReferenceVectorVar": "leftHandPoleReferenceVector",
|
|
"poleVectorVar": "leftHandPoleVector"
|
|
},
|
|
{
|
|
"jointName": "RightFoot",
|
|
"positionVar": "rightFootPosition",
|
|
"rotationVar": "rightFootRotation",
|
|
"typeVar": "rightFootType",
|
|
"weightVar": "rightFootWeight",
|
|
"weight": 1.0,
|
|
"flexCoefficients": [1, 0.45, 0.45],
|
|
"poleVectorEnabledVar": "rightFootPoleVectorEnabled",
|
|
"poleReferenceVectorVar": "rightFootPoleReferenceVector",
|
|
"poleVectorVar": "rightFootPoleVector"
|
|
},
|
|
{
|
|
"jointName": "LeftFoot",
|
|
"positionVar": "leftFootPosition",
|
|
"rotationVar": "leftFootRotation",
|
|
"typeVar": "leftFootType",
|
|
"weightVar": "leftFootWeight",
|
|
"weight": 1.0,
|
|
"flexCoefficients": [1, 0.45, 0.45],
|
|
"poleVectorEnabledVar": "leftFootPoleVectorEnabled",
|
|
"poleReferenceVectorVar": "leftFootPoleReferenceVector",
|
|
"poleVectorVar": "leftFootPoleVector"
|
|
},
|
|
{
|
|
"jointName": "Spine2",
|
|
"positionVar": "spine2Position",
|
|
"rotationVar": "spine2Rotation",
|
|
"typeVar": "spine2Type",
|
|
"weightVar": "spine2Weight",
|
|
"weight": 2.0,
|
|
"flexCoefficients": [1.0, 0.5, 0.25]
|
|
},
|
|
{
|
|
"jointName": "Head",
|
|
"positionVar": "headPosition",
|
|
"rotationVar": "headRotation",
|
|
"typeVar": "headType",
|
|
"weightVar": "headWeight",
|
|
"weight": 4.0,
|
|
"flexCoefficients": [1, 0.5, 0.25, 0.2, 0.1]
|
|
}
|
|
]
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "defaultPoseOverlay",
|
|
"type": "overlay",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "defaultPoseOverlayAlpha",
|
|
"boneSet": "fullBody",
|
|
"boneSetVar": "defaultPoseOverlayBoneSet"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "defaultPose",
|
|
"type": "defaultPose",
|
|
"data": {
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "rightHandOverlay",
|
|
"type": "overlay",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"boneSet": "rightHand",
|
|
"alphaVar": "rightHandOverlayAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "rightHandStateMachine",
|
|
"type": "stateMachine",
|
|
"data": {
|
|
"currentState": "rightHandGrasp",
|
|
"states": [
|
|
{
|
|
"id": "rightHandGrasp",
|
|
"interpTarget": 3,
|
|
"interpDuration": 3,
|
|
"transitions": [
|
|
{ "var": "isRightIndexPoint", "state": "rightIndexPoint" },
|
|
{ "var": "isRightThumbRaise", "state": "rightThumbRaise" },
|
|
{ "var": "isRightIndexPointAndThumbRaise", "state": "rightIndexPointAndThumbRaise" }
|
|
]
|
|
},
|
|
{
|
|
"id": "rightIndexPoint",
|
|
"interpTarget": 15,
|
|
"interpDuration": 3,
|
|
"transitions": [
|
|
{ "var": "isRightHandGrasp", "state": "rightHandGrasp" },
|
|
{ "var": "isRightThumbRaise", "state": "rightThumbRaise" },
|
|
{ "var": "isRightIndexPointAndThumbRaise", "state": "rightIndexPointAndThumbRaise" }
|
|
]
|
|
},
|
|
{
|
|
"id": "rightThumbRaise",
|
|
"interpTarget": 15,
|
|
"interpDuration": 3,
|
|
"transitions": [
|
|
{ "var": "isRightHandGrasp", "state": "rightHandGrasp" },
|
|
{ "var": "isRightIndexPoint", "state": "rightIndexPoint" },
|
|
{ "var": "isRightIndexPointAndThumbRaise", "state": "rightIndexPointAndThumbRaise" }
|
|
]
|
|
},
|
|
{
|
|
"id": "rightIndexPointAndThumbRaise",
|
|
"interpTarget": 15,
|
|
"interpDuration": 3,
|
|
"transitions": [
|
|
{ "var": "isRightHandGrasp", "state": "rightHandGrasp" },
|
|
{ "var": "isRightIndexPoint", "state": "rightIndexPoint" },
|
|
{ "var": "isRightThumbRaise", "state": "rightThumbRaise" }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "rightHandGrasp",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "rightHandGraspAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "rightHandGraspOpen",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/hydra_pose_open_right.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 0.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "rightHandGraspClosed",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/hydra_pose_closed_right.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 0.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rightIndexPoint",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "rightHandGraspAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "rightIndexPointOpen",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_point_open_right.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "rightIndexPointClosed",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_point_closed_right.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rightThumbRaise",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "rightHandGraspAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "rightThumbRaiseOpen",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_thumb_open_right.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "rightThumbRaiseClosed",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_thumb_closed_right.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rightIndexPointAndThumbRaise",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "rightHandGraspAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "rightIndexPointAndThumbRaiseOpen",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_thumb_point_open_right.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "rightIndexPointAndThumbRaiseClosed",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_thumb_point_closed_right.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "leftHandOverlay",
|
|
"type": "overlay",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"boneSet": "leftHand",
|
|
"alphaVar": "leftHandOverlayAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "leftHandStateMachine",
|
|
"type": "stateMachine",
|
|
"data": {
|
|
"currentState": "leftHandGrasp",
|
|
"states": [
|
|
{
|
|
"id": "leftHandGrasp",
|
|
"interpTarget": 3,
|
|
"interpDuration": 3,
|
|
"transitions": [
|
|
{ "var": "isLeftIndexPoint", "state": "leftIndexPoint" },
|
|
{ "var": "isLeftThumbRaise", "state": "leftThumbRaise" },
|
|
{ "var": "isLeftIndexPointAndThumbRaise", "state": "leftIndexPointAndThumbRaise" }
|
|
]
|
|
},
|
|
{
|
|
"id": "leftIndexPoint",
|
|
"interpTarget": 15,
|
|
"interpDuration": 3,
|
|
"transitions": [
|
|
{ "var": "isLeftHandGrasp", "state": "leftHandGrasp" },
|
|
{ "var": "isLeftThumbRaise", "state": "leftThumbRaise" },
|
|
{ "var": "isLeftIndexPointAndThumbRaise", "state": "leftIndexPointAndThumbRaise" }
|
|
]
|
|
},
|
|
{
|
|
"id": "leftThumbRaise",
|
|
"interpTarget": 15,
|
|
"interpDuration": 3,
|
|
"transitions": [
|
|
{ "var": "isLeftHandGrasp", "state": "leftHandGrasp" },
|
|
{ "var": "isLeftIndexPoint", "state": "leftIndexPoint" },
|
|
{ "var": "isLeftIndexPointAndThumbRaise", "state": "leftIndexPointAndThumbRaise" }
|
|
]
|
|
},
|
|
{
|
|
"id": "leftIndexPointAndThumbRaise",
|
|
"interpTarget": 15,
|
|
"interpDuration": 3,
|
|
"transitions": [
|
|
{ "var": "isLeftHandGrasp", "state": "leftHandGrasp" },
|
|
{ "var": "isLeftIndexPoint", "state": "leftIndexPoint" },
|
|
{ "var": "isLeftThumbRaise", "state": "leftThumbRaise" }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "leftHandGrasp",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "leftHandGraspAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "leftHandGraspOpen",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/hydra_pose_open_left.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 0.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "leftHandGraspClosed",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/hydra_pose_closed_left.fbx",
|
|
"startFrame": 10.0,
|
|
"endFrame": 10.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "leftIndexPoint",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "leftHandGraspAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "leftIndexPointOpen",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_point_open_left.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "leftIndexPointClosed",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_point_closed_left.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "leftThumbRaise",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "leftHandGraspAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "leftThumbRaiseOpen",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_thumb_open_left.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "leftThumbRaiseClosed",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_thumb_closed_left.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "leftIndexPointAndThumbRaise",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "leftHandGraspAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "leftIndexPointAndThumbRaiseOpen",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_thumb_point_open_left.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "leftIndexPointAndThumbRaiseClosed",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/touch_thumb_point_closed_left.fbx",
|
|
"startFrame": 15.0,
|
|
"endFrame": 15.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mainStateMachine",
|
|
"type": "stateMachine",
|
|
"data": {
|
|
"currentState": "idle",
|
|
"states": [
|
|
{
|
|
"id": "idle",
|
|
"interpTarget": 0,
|
|
"interpDuration": 10,
|
|
"transitions": [
|
|
{ "var": "isMovingForward", "state": "idleToWalkFwd" },
|
|
{ "var": "isMovingBackward", "state": "walkBwd" },
|
|
{ "var": "isMovingRight", "state": "strafeRight" },
|
|
{ "var": "isMovingLeft", "state": "strafeLeft" },
|
|
{ "var": "isTurningRight", "state": "turnRight" },
|
|
{ "var": "isTurningLeft", "state": "turnLeft" },
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "isInAirStand", "state": "inAirStand" },
|
|
{ "var": "isInAirRun", "state": "inAirRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "idleToWalkFwd",
|
|
"interpTarget": 0,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "idleToWalkFwdOnDone", "state": "walkFwd" },
|
|
{ "var": "isNotMoving", "state": "idle" },
|
|
{ "var": "isMovingBackward", "state": "walkBwd" },
|
|
{ "var": "isMovingRight", "state": "strafeRight" },
|
|
{ "var": "isMovingLeft", "state": "strafeLeft" },
|
|
{ "var": "isTurningRight", "state": "turnRight" },
|
|
{ "var": "isTurningLeft", "state": "turnLeft" },
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "isInAirStand", "state": "inAirStand" },
|
|
{ "var": "isInAirRun", "state": "inAirRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "walkFwd",
|
|
"interpTarget": 16,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isNotMoving", "state": "idle" },
|
|
{ "var": "isMovingBackward", "state": "walkBwd" },
|
|
{ "var": "isMovingRight", "state": "strafeRight" },
|
|
{ "var": "isMovingLeft", "state": "strafeLeft" },
|
|
{ "var": "isTurningRight", "state": "turnRight" },
|
|
{ "var": "isTurningLeft", "state": "turnLeft" },
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "isInAirStand", "state": "inAirStand" },
|
|
{ "var": "isInAirRun", "state": "inAirRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "walkBwd",
|
|
"interpTarget": 8,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isNotMoving", "state": "idle" },
|
|
{ "var": "isMovingForward", "state": "walkFwd" },
|
|
{ "var": "isMovingRight", "state": "strafeRight" },
|
|
{ "var": "isMovingLeft", "state": "strafeLeft" },
|
|
{ "var": "isTurningRight", "state": "turnRight" },
|
|
{ "var": "isTurningLeft", "state": "turnLeft" },
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "isInAirStand", "state": "inAirStand" },
|
|
{ "var": "isInAirRun", "state": "inAirRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "strafeRight",
|
|
"interpTarget": 20,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isNotMoving", "state": "idle" },
|
|
{ "var": "isMovingForward", "state": "walkFwd" },
|
|
{ "var": "isMovingBackward", "state": "walkBwd" },
|
|
{ "var": "isMovingLeft", "state": "strafeLeft" },
|
|
{ "var": "isTurningRight", "state": "turnRight" },
|
|
{ "var": "isTurningLeft", "state": "turnLeft" },
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "isInAirStand", "state": "inAirStand" },
|
|
{ "var": "isInAirRun", "state": "inAirRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "strafeLeft",
|
|
"interpTarget": 20,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isNotMoving", "state": "idle" },
|
|
{ "var": "isMovingForward", "state": "walkFwd" },
|
|
{ "var": "isMovingBackward", "state": "walkBwd" },
|
|
{ "var": "isMovingRight", "state": "strafeRight" },
|
|
{ "var": "isTurningRight", "state": "turnRight" },
|
|
{ "var": "isTurningLeft", "state": "turnLeft" },
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "isInAirStand", "state": "inAirStand" },
|
|
{ "var": "isInAirRun", "state": "inAirRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "turnRight",
|
|
"interpTarget": 6,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isNotTurning", "state": "idle" },
|
|
{ "var": "isMovingForward", "state": "walkFwd" },
|
|
{ "var": "isMovingBackward", "state": "walkBwd" },
|
|
{ "var": "isMovingRight", "state": "strafeRight" },
|
|
{ "var": "isMovingLeft", "state": "strafeLeft" },
|
|
{ "var": "isTurningLeft", "state": "turnLeft" },
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "isInAirStand", "state": "inAirStand" },
|
|
{ "var": "isInAirRun", "state": "inAirRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "turnLeft",
|
|
"interpTarget": 6,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isNotTurning", "state": "idle" },
|
|
{ "var": "isMovingForward", "state": "walkFwd" },
|
|
{ "var": "isMovingBackward", "state": "walkBwd" },
|
|
{ "var": "isMovingRight", "state": "strafeRight" },
|
|
{ "var": "isMovingLeft", "state": "strafeLeft" },
|
|
{ "var": "isTurningRight", "state": "turnRight" },
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "isInAirStand", "state": "inAirStand" },
|
|
{ "var": "isInAirRun", "state": "inAirRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "fly",
|
|
"interpTarget": 6,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isNotFlying", "state": "idle" }
|
|
]
|
|
},
|
|
{
|
|
"id": "takeoffStand",
|
|
"interpTarget": 0,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isNotTakeoff", "state": "inAirStand" }
|
|
]
|
|
},
|
|
{
|
|
"id": "takeoffRun",
|
|
"interpTarget": 0,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isNotTakeoff", "state": "inAirRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "inAirStand",
|
|
"interpTarget": 0,
|
|
"interpDuration": 6,
|
|
"interpType": "snapshotPrev",
|
|
"transitions": [
|
|
{ "var": "isNotInAir", "state": "landStandImpact" }
|
|
]
|
|
},
|
|
{
|
|
"id": "inAirRun",
|
|
"interpTarget": 0,
|
|
"interpDuration": 6,
|
|
"interpType": "snapshotPrev",
|
|
"transitions": [
|
|
{ "var": "isNotInAir", "state": "landRun" }
|
|
]
|
|
},
|
|
{
|
|
"id": "landStandImpact",
|
|
"interpTarget": 6,
|
|
"interpDuration": 4,
|
|
"transitions": [
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "landStandImpactOnDone", "state": "landStand" }
|
|
]
|
|
},
|
|
{
|
|
"id": "landStand",
|
|
"interpTarget": 0,
|
|
"interpDuration": 1,
|
|
"transitions": [
|
|
{ "var": "isMovingForward", "state": "idleToWalkFwd" },
|
|
{ "var": "isMovingBackward", "state": "walkBwd" },
|
|
{ "var": "isMovingRight", "state": "strafeRight" },
|
|
{ "var": "isMovingLeft", "state": "strafeLeft" },
|
|
{ "var": "isTurningRight", "state": "turnRight" },
|
|
{ "var": "isTurningLeft", "state": "turnLeft" },
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "isInAirStand", "state": "inAirStand" },
|
|
{ "var": "isInAirRun", "state": "inAirRun" },
|
|
{ "var": "landStandOnDone", "state": "idle" }
|
|
]
|
|
},
|
|
{
|
|
"id": "landRun",
|
|
"interpTarget": 1,
|
|
"interpDuration": 7,
|
|
"transitions": [
|
|
{ "var": "isFlying", "state": "fly" },
|
|
{ "var": "isTakeoffStand", "state": "takeoffStand" },
|
|
{ "var": "isTakeoffRun", "state": "takeoffRun" },
|
|
{ "var": "landRunOnDone", "state": "walkFwd" }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "idle",
|
|
"type": "stateMachine",
|
|
"data": {
|
|
"currentState": "idleStand",
|
|
"states": [
|
|
{
|
|
"id": "idleStand",
|
|
"interpTarget": 6,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "isTalking", "state": "idleTalk" }
|
|
]
|
|
},
|
|
{
|
|
"id": "idleTalk",
|
|
"interpTarget": 6,
|
|
"interpDuration": 6,
|
|
"transitions": [
|
|
{ "var": "notIsTalking", "state": "idleStand" }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "idleStand",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "test/idle.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 300.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "idleTalk",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "test/talk.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 800.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "walkFwd",
|
|
"type": "blendLinearMove",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"desiredSpeed": 1.4,
|
|
"characteristicSpeeds": [0.5, 2.5, 4.5],
|
|
"alphaVar": "moveForwardAlpha",
|
|
"desiredSpeedVar": "moveForwardSpeed"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "walkFwdShort",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/walk_short_fwd.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 39.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "walkFwdNormal",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "test/walk_fwd_fast02.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 26.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "walkFwdRun",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/run_fwd.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 21.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "idleToWalkFwd",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/idle_to_walk.fbx",
|
|
"startFrame": 1.0,
|
|
"endFrame": 13.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "walkBwd",
|
|
"type": "blendLinearMove",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"desiredSpeed": 1.4,
|
|
"characteristicSpeeds": [0.6, 1.45],
|
|
"alphaVar": "moveBackwardAlpha",
|
|
"desiredSpeedVar": "moveBackwardSpeed"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "walkBwdShort",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/walk_short_bwd.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 38.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "walkBwdNormal",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "test/walk_bwd_fast.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 36.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turnLeft",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "test/turn_left.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 32.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "turnRight",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "test/turn_left.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 32.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true,
|
|
"mirrorFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "strafeLeft",
|
|
"type": "blendLinearMove",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"desiredSpeed": 1.4,
|
|
"characteristicSpeeds": [0.2, 2.6],
|
|
"alphaVar": "moveLateralAlpha",
|
|
"desiredSpeedVar": "moveLateralSpeed",
|
|
"interpType": "snapshotPrev"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "strafeLeftShort",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/side_step_short_left.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 28.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "strafeLeftFast",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "test/side_step_left_fast.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 16.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "strafeRight",
|
|
"type": "blendLinearMove",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"desiredSpeed": 1.4,
|
|
"characteristicSpeeds": [0.2, 2.6],
|
|
"alphaVar": "moveLateralAlpha",
|
|
"desiredSpeedVar": "moveLateralSpeed",
|
|
"interpType": "snapshotPrev"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "strafeRightShort",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/side_step_short_right.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 28.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "strafeRightFast",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "test/side_step_left_fast.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 16.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true,
|
|
"mirrorFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "fly",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/fly.fbx",
|
|
"startFrame": 1.0,
|
|
"endFrame": 80.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "takeoffStand",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_standing_takeoff.fbx",
|
|
"startFrame": 17.0,
|
|
"endFrame": 25.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "takeoffRun",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_takeoff.fbx",
|
|
"startFrame": 1.0,
|
|
"endFrame": 2.5,
|
|
"timeScale": 0.01,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "inAirStand",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "inAirAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "inAirStandPreApex",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_standing_apex.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 0.0,
|
|
"timeScale": 0.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "inAirStandApex",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_standing_apex.fbx",
|
|
"startFrame": 1.0,
|
|
"endFrame": 1.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "inAirStandPostApex",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_standing_apex.fbx",
|
|
"startFrame": 2.0,
|
|
"endFrame": 2.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "inAirRun",
|
|
"type": "blendLinear",
|
|
"data": {
|
|
"alpha": 0.0,
|
|
"alphaVar": "inAirAlpha"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "inAirRunPreApex",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_in_air.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 0.0,
|
|
"timeScale": 0.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "inAirRunApex",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_in_air.fbx",
|
|
"startFrame": 6.0,
|
|
"endFrame": 6.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "inAirRunPostApex",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_in_air.fbx",
|
|
"startFrame": 11.0,
|
|
"endFrame": 11.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "landStandImpact",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_standing_land.fbx",
|
|
"startFrame": 1.0,
|
|
"endFrame": 6.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "landStand",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_standing_land.fbx",
|
|
"startFrame": 6.0,
|
|
"endFrame": 28.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "landRun",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/jump_land.fbx",
|
|
"startFrame": 1.0,
|
|
"endFrame": 6.0,
|
|
"timeScale": 0.65,
|
|
"loopFlag": false
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "userAnimA",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/idle.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 90.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "userAnimB",
|
|
"type": "clip",
|
|
"data": {
|
|
"url": "qrc:///avatar/animations/idle.fbx",
|
|
"startFrame": 0.0,
|
|
"endFrame": 90.0,
|
|
"timeScale": 1.0,
|
|
"loopFlag": true
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
}
|