From 470d52b1bc67ab227d41f6d6b078db4fbec9b359 Mon Sep 17 00:00:00 2001 From: lishuo Date: Fri, 14 May 2021 19:26:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E7=89=A9=E5=8A=A8=E7=94=BB=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../L@RideLoop_Medium_01.fbx.meta | 768 ++++++++++++++---- .../Animation Fbx/L@StrengthApply_01.fbx.meta | 768 ++++++++++++++---- .../PlayerBasicAnimator.controller | 465 +++++++++-- Assets/Scenes/Ride/Scripts/AbstractPlayer.cs | 19 +- .../Scenes/Ride/Scripts/PlayerController.cs | 9 +- 5 files changed, 1603 insertions(+), 426 deletions(-) diff --git a/Assets/Models/Cyclist animations HD/Animation Fbx/L@RideLoop_Medium_01.fbx.meta b/Assets/Models/Cyclist animations HD/Animation Fbx/L@RideLoop_Medium_01.fbx.meta index 2cc767b2..e2c488b2 100644 --- a/Assets/Models/Cyclist animations HD/Animation Fbx/L@RideLoop_Medium_01.fbx.meta +++ b/Assets/Models/Cyclist animations HD/Animation Fbx/L@RideLoop_Medium_01.fbx.meta @@ -1,214 +1,614 @@ fileFormatVersion: 2 guid: 362224225d2a8a64cbe8f6c561493ecf -timeCreated: 1478463925 -licenseType: Store ModelImporter: - serializedVersion: 19 - fileIDToRecycleName: - 100000: Back_Wheel - 100002: Bike - 100004: bk_handle - 100006: bk_susp_child - 100008: bk_susp_pare - 100010: bk_suspention - 100012: bk_wheel - 100014: bk_wheel0 - 100016: body1 - 100018: Chest_J - 100020: Cycle_body - 100022: Cyclist_Lady - 100024: Cyclist_Lady___cycle:Body_geo - 100026: Cyclist_Lady___cycle:Eye_geo - 100028: Cyclist_Lady___cycle:Gloves_geo - 100030: Cyclist_Lady___cycle:Goggles_geo - 100032: Cyclist_Lady___cycle:Hair_geo - 100034: Cyclist_Lady___cycle:Hand_geo - 100036: Cyclist_Lady___cycle:Hemet_geo - 100038: Cyclist_Lady___cycle:Shoe_geo - 100040: Cyclist_Lady_Character - 100042: Front_Wheel - 100044: FT_wheel_Ball - 100046: ft_wheel_suspention - 100048: handle - 100050: joint2 - 100052: joint3 - 100054: //RootNode - 100056: L_Ankle_J - 100058: L_Arm_J - 100060: L_Ball_J - 100062: L_Clavicle_J - 100064: L_Elbow_J - 100066: L_Hip_J - 100068: L_Index_01_J - 100070: L_Index_02_J - 100072: L_Index_03_J - 100074: L_Knee_J - 100076: L_Middle_01_J - 100078: L_Middle_02_J - 100080: L_Middle_03_J - 100082: L_ProWrist_J - 100084: L_Thumb_01_J - 100086: L_Thumb_02_J - 100088: L_Toe_J - 100090: L_Wrist_J - 100092: Neck_J - 100094: pedal_J - 100096: Peddle - 100098: Pelvis_J - 100100: R_Ankle_J - 100102: R_Arm_J - 100104: R_Ball_J - 100106: R_Clavicle_J - 100108: R_Elbow_J - 100110: R_Hip_J - 100112: R_Index_01_J - 100114: R_Index_02_J - 100116: R_Index_03_J - 100118: R_Knee_J - 100120: R_Middle_01_J - 100122: R_Middle_02_J - 100124: R_Middle_03_J - 100126: R_ProWrist_J - 100128: R_Thumb_01_J - 100130: R_Thumb_02_J - 100132: R_Toe_J - 100134: R_Wrist_J - 100136: Root_J - 100138: Root_J 1 - 100140: Spline_01_J - 100142: Spline_02_J - 400000: Back_Wheel - 400002: Bike - 400004: bk_handle - 400006: bk_susp_child - 400008: bk_susp_pare - 400010: bk_suspention - 400012: bk_wheel - 400014: bk_wheel0 - 400016: body1 - 400018: Chest_J - 400020: Cycle_body - 400022: Cyclist_Lady - 400024: Cyclist_Lady___cycle:Body_geo - 400026: Cyclist_Lady___cycle:Eye_geo - 400028: Cyclist_Lady___cycle:Gloves_geo - 400030: Cyclist_Lady___cycle:Goggles_geo - 400032: Cyclist_Lady___cycle:Hair_geo - 400034: Cyclist_Lady___cycle:Hand_geo - 400036: Cyclist_Lady___cycle:Hemet_geo - 400038: Cyclist_Lady___cycle:Shoe_geo - 400040: Cyclist_Lady_Character - 400042: Front_Wheel - 400044: FT_wheel_Ball - 400046: ft_wheel_suspention - 400048: handle - 400050: joint2 - 400052: joint3 - 400054: //RootNode - 400056: L_Ankle_J - 400058: L_Arm_J - 400060: L_Ball_J - 400062: L_Clavicle_J - 400064: L_Elbow_J - 400066: L_Hip_J - 400068: L_Index_01_J - 400070: L_Index_02_J - 400072: L_Index_03_J - 400074: L_Knee_J - 400076: L_Middle_01_J - 400078: L_Middle_02_J - 400080: L_Middle_03_J - 400082: L_ProWrist_J - 400084: L_Thumb_01_J - 400086: L_Thumb_02_J - 400088: L_Toe_J - 400090: L_Wrist_J - 400092: Neck_J - 400094: pedal_J - 400096: Peddle - 400098: Pelvis_J - 400100: R_Ankle_J - 400102: R_Arm_J - 400104: R_Ball_J - 400106: R_Clavicle_J - 400108: R_Elbow_J - 400110: R_Hip_J - 400112: R_Index_01_J - 400114: R_Index_02_J - 400116: R_Index_03_J - 400118: R_Knee_J - 400120: R_Middle_01_J - 400122: R_Middle_02_J - 400124: R_Middle_03_J - 400126: R_ProWrist_J - 400128: R_Thumb_01_J - 400130: R_Thumb_02_J - 400132: R_Toe_J - 400134: R_Wrist_J - 400136: Root_J - 400138: Root_J 1 - 400140: Spline_01_J - 400142: Spline_02_J - 4300000: Cyclist_Lady___cycle:Body_geo - 4300002: Cyclist_Lady___cycle:Hair_geo - 4300004: Cyclist_Lady___cycle:Goggles_geo - 4300006: Cyclist_Lady___cycle:Eye_geo - 4300008: Cyclist_Lady___cycle:Hemet_geo - 4300010: Cyclist_Lady___cycle:Gloves_geo - 4300012: Cyclist_Lady___cycle:Shoe_geo - 4300014: Cyclist_Lady___cycle:Hand_geo - 4300016: Front_Wheel - 4300018: Back_Wheel - 4300020: Peddle - 4300022: Cycle_body - 7400000: Take 001 - 9500000: //RootNode - 13700000: Back_Wheel - 13700002: Cycle_body - 13700004: Cyclist_Lady___cycle:Body_geo - 13700006: Cyclist_Lady___cycle:Eye_geo - 13700008: Cyclist_Lady___cycle:Gloves_geo - 13700010: Cyclist_Lady___cycle:Goggles_geo - 13700012: Cyclist_Lady___cycle:Hair_geo - 13700014: Cyclist_Lady___cycle:Hand_geo - 13700016: Cyclist_Lady___cycle:Hemet_geo - 13700018: Cyclist_Lady___cycle:Shoe_geo - 13700020: Front_Wheel - 13700022: Peddle + serializedVersion: 19301 + internalIDToNameTable: + - first: + 1: 100000 + second: Back_Wheel + - first: + 1: 100002 + second: Bike + - first: + 1: 100004 + second: bk_handle + - first: + 1: 100006 + second: bk_susp_child + - first: + 1: 100008 + second: bk_susp_pare + - first: + 1: 100010 + second: bk_suspention + - first: + 1: 100012 + second: bk_wheel + - first: + 1: 100014 + second: bk_wheel0 + - first: + 1: 100016 + second: body1 + - first: + 1: 100018 + second: Chest_J + - first: + 1: 100020 + second: Cycle_body + - first: + 1: 100022 + second: Cyclist_Lady + - first: + 1: 100024 + second: Cyclist_Lady___cycle:Body_geo + - first: + 1: 100026 + second: Cyclist_Lady___cycle:Eye_geo + - first: + 1: 100028 + second: Cyclist_Lady___cycle:Gloves_geo + - first: + 1: 100030 + second: Cyclist_Lady___cycle:Goggles_geo + - first: + 1: 100032 + second: Cyclist_Lady___cycle:Hair_geo + - first: + 1: 100034 + second: Cyclist_Lady___cycle:Hand_geo + - first: + 1: 100036 + second: Cyclist_Lady___cycle:Hemet_geo + - first: + 1: 100038 + second: Cyclist_Lady___cycle:Shoe_geo + - first: + 1: 100040 + second: Cyclist_Lady_Character + - first: + 1: 100042 + second: Front_Wheel + - first: + 1: 100044 + second: FT_wheel_Ball + - first: + 1: 100046 + second: ft_wheel_suspention + - first: + 1: 100048 + second: handle + - first: + 1: 100050 + second: joint2 + - first: + 1: 100052 + second: joint3 + - first: + 1: 100054 + second: //RootNode + - first: + 1: 100056 + second: L_Ankle_J + - first: + 1: 100058 + second: L_Arm_J + - first: + 1: 100060 + second: L_Ball_J + - first: + 1: 100062 + second: L_Clavicle_J + - first: + 1: 100064 + second: L_Elbow_J + - first: + 1: 100066 + second: L_Hip_J + - first: + 1: 100068 + second: L_Index_01_J + - first: + 1: 100070 + second: L_Index_02_J + - first: + 1: 100072 + second: L_Index_03_J + - first: + 1: 100074 + second: L_Knee_J + - first: + 1: 100076 + second: L_Middle_01_J + - first: + 1: 100078 + second: L_Middle_02_J + - first: + 1: 100080 + second: L_Middle_03_J + - first: + 1: 100082 + second: L_ProWrist_J + - first: + 1: 100084 + second: L_Thumb_01_J + - first: + 1: 100086 + second: L_Thumb_02_J + - first: + 1: 100088 + second: L_Toe_J + - first: + 1: 100090 + second: L_Wrist_J + - first: + 1: 100092 + second: Neck_J + - first: + 1: 100094 + second: pedal_J + - first: + 1: 100096 + second: Peddle + - first: + 1: 100098 + second: Pelvis_J + - first: + 1: 100100 + second: R_Ankle_J + - first: + 1: 100102 + second: R_Arm_J + - first: + 1: 100104 + second: R_Ball_J + - first: + 1: 100106 + second: R_Clavicle_J + - first: + 1: 100108 + second: R_Elbow_J + - first: + 1: 100110 + second: R_Hip_J + - first: + 1: 100112 + second: R_Index_01_J + - first: + 1: 100114 + second: R_Index_02_J + - first: + 1: 100116 + second: R_Index_03_J + - first: + 1: 100118 + second: R_Knee_J + - first: + 1: 100120 + second: R_Middle_01_J + - first: + 1: 100122 + second: R_Middle_02_J + - first: + 1: 100124 + second: R_Middle_03_J + - first: + 1: 100126 + second: R_ProWrist_J + - first: + 1: 100128 + second: R_Thumb_01_J + - first: + 1: 100130 + second: R_Thumb_02_J + - first: + 1: 100132 + second: R_Toe_J + - first: + 1: 100134 + second: R_Wrist_J + - first: + 1: 100136 + second: Root_J + - first: + 1: 100138 + second: Root_J 1 + - first: + 1: 100140 + second: Spline_01_J + - first: + 1: 100142 + second: Spline_02_J + - first: + 4: 400000 + second: Back_Wheel + - first: + 4: 400002 + second: Bike + - first: + 4: 400004 + second: bk_handle + - first: + 4: 400006 + second: bk_susp_child + - first: + 4: 400008 + second: bk_susp_pare + - first: + 4: 400010 + second: bk_suspention + - first: + 4: 400012 + second: bk_wheel + - first: + 4: 400014 + second: bk_wheel0 + - first: + 4: 400016 + second: body1 + - first: + 4: 400018 + second: Chest_J + - first: + 4: 400020 + second: Cycle_body + - first: + 4: 400022 + second: Cyclist_Lady + - first: + 4: 400024 + second: Cyclist_Lady___cycle:Body_geo + - first: + 4: 400026 + second: Cyclist_Lady___cycle:Eye_geo + - first: + 4: 400028 + second: Cyclist_Lady___cycle:Gloves_geo + - first: + 4: 400030 + second: Cyclist_Lady___cycle:Goggles_geo + - first: + 4: 400032 + second: Cyclist_Lady___cycle:Hair_geo + - first: + 4: 400034 + second: Cyclist_Lady___cycle:Hand_geo + - first: + 4: 400036 + second: Cyclist_Lady___cycle:Hemet_geo + - first: + 4: 400038 + second: Cyclist_Lady___cycle:Shoe_geo + - first: + 4: 400040 + second: Cyclist_Lady_Character + - first: + 4: 400042 + second: Front_Wheel + - first: + 4: 400044 + second: FT_wheel_Ball + - first: + 4: 400046 + second: ft_wheel_suspention + - first: + 4: 400048 + second: handle + - first: + 4: 400050 + second: joint2 + - first: + 4: 400052 + second: joint3 + - first: + 4: 400054 + second: //RootNode + - first: + 4: 400056 + second: L_Ankle_J + - first: + 4: 400058 + second: L_Arm_J + - first: + 4: 400060 + second: L_Ball_J + - first: + 4: 400062 + second: L_Clavicle_J + - first: + 4: 400064 + second: L_Elbow_J + - first: + 4: 400066 + second: L_Hip_J + - first: + 4: 400068 + second: L_Index_01_J + - first: + 4: 400070 + second: L_Index_02_J + - first: + 4: 400072 + second: L_Index_03_J + - first: + 4: 400074 + second: L_Knee_J + - first: + 4: 400076 + second: L_Middle_01_J + - first: + 4: 400078 + second: L_Middle_02_J + - first: + 4: 400080 + second: L_Middle_03_J + - first: + 4: 400082 + second: L_ProWrist_J + - first: + 4: 400084 + second: L_Thumb_01_J + - first: + 4: 400086 + second: L_Thumb_02_J + - first: + 4: 400088 + second: L_Toe_J + - first: + 4: 400090 + second: L_Wrist_J + - first: + 4: 400092 + second: Neck_J + - first: + 4: 400094 + second: pedal_J + - first: + 4: 400096 + second: Peddle + - first: + 4: 400098 + second: Pelvis_J + - first: + 4: 400100 + second: R_Ankle_J + - first: + 4: 400102 + second: R_Arm_J + - first: + 4: 400104 + second: R_Ball_J + - first: + 4: 400106 + second: R_Clavicle_J + - first: + 4: 400108 + second: R_Elbow_J + - first: + 4: 400110 + second: R_Hip_J + - first: + 4: 400112 + second: R_Index_01_J + - first: + 4: 400114 + second: R_Index_02_J + - first: + 4: 400116 + second: R_Index_03_J + - first: + 4: 400118 + second: R_Knee_J + - first: + 4: 400120 + second: R_Middle_01_J + - first: + 4: 400122 + second: R_Middle_02_J + - first: + 4: 400124 + second: R_Middle_03_J + - first: + 4: 400126 + second: R_ProWrist_J + - first: + 4: 400128 + second: R_Thumb_01_J + - first: + 4: 400130 + second: R_Thumb_02_J + - first: + 4: 400132 + second: R_Toe_J + - first: + 4: 400134 + second: R_Wrist_J + - first: + 4: 400136 + second: Root_J + - first: + 4: 400138 + second: Root_J 1 + - first: + 4: 400140 + second: Spline_01_J + - first: + 4: 400142 + second: Spline_02_J + - first: + 43: 4300000 + second: Cyclist_Lady___cycle:Body_geo + - first: + 43: 4300002 + second: Cyclist_Lady___cycle:Hair_geo + - first: + 43: 4300004 + second: Cyclist_Lady___cycle:Goggles_geo + - first: + 43: 4300006 + second: Cyclist_Lady___cycle:Eye_geo + - first: + 43: 4300008 + second: Cyclist_Lady___cycle:Hemet_geo + - first: + 43: 4300010 + second: Cyclist_Lady___cycle:Gloves_geo + - first: + 43: 4300012 + second: Cyclist_Lady___cycle:Shoe_geo + - first: + 43: 4300014 + second: Cyclist_Lady___cycle:Hand_geo + - first: + 43: 4300016 + second: Front_Wheel + - first: + 43: 4300018 + second: Back_Wheel + - first: + 43: 4300020 + second: Peddle + - first: + 43: 4300022 + second: Cycle_body + - first: + 74: 7400000 + second: RideLoop_Medium_01 + - first: + 95: 9500000 + second: //RootNode + - first: + 137: 13700000 + second: Back_Wheel + - first: + 137: 13700002 + second: Cycle_body + - first: + 137: 13700004 + second: Cyclist_Lady___cycle:Body_geo + - first: + 137: 13700006 + second: Cyclist_Lady___cycle:Eye_geo + - first: + 137: 13700008 + second: Cyclist_Lady___cycle:Gloves_geo + - first: + 137: 13700010 + second: Cyclist_Lady___cycle:Goggles_geo + - first: + 137: 13700012 + second: Cyclist_Lady___cycle:Hair_geo + - first: + 137: 13700014 + second: Cyclist_Lady___cycle:Hand_geo + - first: + 137: 13700016 + second: Cyclist_Lady___cycle:Hemet_geo + - first: + 137: 13700018 + second: Cyclist_Lady___cycle:Shoe_geo + - first: + 137: 13700020 + second: Front_Wheel + - first: + 137: 13700022 + second: Peddle + externalObjects: + - first: + type: UnityEngine:Material + assembly: UnityEngine.CoreModule + name: Cyclist_Lady___cycle_Body_face_t + second: {fileID: 2100000, guid: 6f41f21cb888a3f4ab4b29fcfcb6bb92, type: 2} + - first: + type: UnityEngine:Material + assembly: UnityEngine.CoreModule + name: Cyclist_Lady___cycle_Helmet_gloves_Shoe_t + second: {fileID: 2100000, guid: 0c2661f2c8dd64c46bef90c24ec4494f, type: 2} + - first: + type: UnityEngine:Material + assembly: UnityEngine.CoreModule + name: lambert7 + second: {fileID: 2100000, guid: 9ff8084f124c39d44a9e1780ac962de6, type: 2} materials: - importMaterials: 1 + materialImportMode: 1 materialName: 0 materialSearch: 1 + materialLocation: 0 animations: legacyGenerateAnimations: 4 bakeSimulation: 0 - resampleRotations: 1 + resampleCurves: 1 optimizeGameObjects: 0 motionNodeName: + rigImportErrors: + rigImportWarnings: animationImportErrors: animationImportWarnings: animationRetargetingWarnings: animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 animationCompression: 1 animationRotationError: 0.5 animationPositionError: 0.5 animationScaleError: 0.5 animationWrapMode: 0 extraExposedTransformPaths: [] - clipAnimations: [] + extraUserProperties: [] + clipAnimations: + - serializedVersion: 16 + name: RideLoop_Medium_01 + takeName: Take 001 + internalID: 0 + firstFrame: 1 + lastFrame: 30 + wrapMode: 0 + orientationOffsetY: 0 + level: 0 + cycleOffset: 0 + loop: 0 + hasAdditiveReferencePose: 0 + loopTime: 1 + loopBlend: 0 + loopBlendOrientation: 0 + loopBlendPositionY: 0 + loopBlendPositionXZ: 0 + keepOriginalOrientation: 0 + keepOriginalPositionY: 1 + keepOriginalPositionXZ: 0 + heightFromFeet: 0 + mirror: 0 + bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000 + curves: [] + events: [] + transformMask: [] + maskType: 3 + maskSource: {instanceID: 0} + additiveReferencePoseFrame: 1 isReadable: 1 meshes: lODScreenPercentages: [] globalScale: 100 meshCompression: 0 addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 0 importBlendShapes: 1 + importCameras: 0 + importLights: 0 + fileIdsGeneration: 1 swapUVChannels: 0 generateSecondaryUV: 0 useFileUnits: 1 - optimizeMeshForGPU: 1 keepQuads: 0 weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 1 secondaryUVAngleDistortion: 8 secondaryUVAreaDistortion: 15.000001 secondaryUVHardAngle: 88 @@ -218,9 +618,14 @@ ModelImporter: normalSmoothAngle: 60 normalImportMode: 0 tangentImportMode: 3 + normalCalculationMode: 0 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] importAnimation: 1 - copyAvatar: 0 humanDescription: + serializedVersion: 3 human: [] skeleton: [] armTwist: 0.5 @@ -230,11 +635,16 @@ ModelImporter: armStretch: 0.05 legStretch: 0.05 feetSpacing: 0 + globalScale: 100 rootMotionBoneName: hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 0 lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 animationType: 2 humanoidOversampling: 1 + avatarSetup: 1 additionalBone: 0 userData: assetBundleName: diff --git a/Assets/Models/Cyclist animations HD/Animation Fbx/L@StrengthApply_01.fbx.meta b/Assets/Models/Cyclist animations HD/Animation Fbx/L@StrengthApply_01.fbx.meta index a3e6101b..44e8e24f 100644 --- a/Assets/Models/Cyclist animations HD/Animation Fbx/L@StrengthApply_01.fbx.meta +++ b/Assets/Models/Cyclist animations HD/Animation Fbx/L@StrengthApply_01.fbx.meta @@ -1,214 +1,614 @@ fileFormatVersion: 2 guid: 3a841865ff3bcfb42942c8d6e9a36080 -timeCreated: 1478463931 -licenseType: Store ModelImporter: - serializedVersion: 19 - fileIDToRecycleName: - 100000: Back_Wheel - 100002: Bike - 100004: bk_handle - 100006: bk_susp_child - 100008: bk_susp_pare - 100010: bk_suspention - 100012: bk_wheel - 100014: bk_wheel0 - 100016: body1 - 100018: Chest_J - 100020: Cycle_body - 100022: Cyclist_Lady - 100024: Cyclist_Lady___cycle:Body_geo - 100026: Cyclist_Lady___cycle:Eye_geo - 100028: Cyclist_Lady___cycle:Gloves_geo - 100030: Cyclist_Lady___cycle:Goggles_geo - 100032: Cyclist_Lady___cycle:Hair_geo - 100034: Cyclist_Lady___cycle:Hand_geo - 100036: Cyclist_Lady___cycle:Hemet_geo - 100038: Cyclist_Lady___cycle:Shoe_geo - 100040: Cyclist_Lady_Character - 100042: Front_Wheel - 100044: FT_wheel_Ball - 100046: ft_wheel_suspention - 100048: handle - 100050: joint2 - 100052: joint3 - 100054: //RootNode - 100056: L_Ankle_J - 100058: L_Arm_J - 100060: L_Ball_J - 100062: L_Clavicle_J - 100064: L_Elbow_J - 100066: L_Hip_J - 100068: L_Index_01_J - 100070: L_Index_02_J - 100072: L_Index_03_J - 100074: L_Knee_J - 100076: L_Middle_01_J - 100078: L_Middle_02_J - 100080: L_Middle_03_J - 100082: L_ProWrist_J - 100084: L_Thumb_01_J - 100086: L_Thumb_02_J - 100088: L_Toe_J - 100090: L_Wrist_J - 100092: Neck_J - 100094: pedal_J - 100096: Peddle - 100098: Pelvis_J - 100100: R_Ankle_J - 100102: R_Arm_J - 100104: R_Ball_J - 100106: R_Clavicle_J - 100108: R_Elbow_J - 100110: R_Hip_J - 100112: R_Index_01_J - 100114: R_Index_02_J - 100116: R_Index_03_J - 100118: R_Knee_J - 100120: R_Middle_01_J - 100122: R_Middle_02_J - 100124: R_Middle_03_J - 100126: R_ProWrist_J - 100128: R_Thumb_01_J - 100130: R_Thumb_02_J - 100132: R_Toe_J - 100134: R_Wrist_J - 100136: Root_J - 100138: Root_J 1 - 100140: Spline_01_J - 100142: Spline_02_J - 400000: Back_Wheel - 400002: Bike - 400004: bk_handle - 400006: bk_susp_child - 400008: bk_susp_pare - 400010: bk_suspention - 400012: bk_wheel - 400014: bk_wheel0 - 400016: body1 - 400018: Chest_J - 400020: Cycle_body - 400022: Cyclist_Lady - 400024: Cyclist_Lady___cycle:Body_geo - 400026: Cyclist_Lady___cycle:Eye_geo - 400028: Cyclist_Lady___cycle:Gloves_geo - 400030: Cyclist_Lady___cycle:Goggles_geo - 400032: Cyclist_Lady___cycle:Hair_geo - 400034: Cyclist_Lady___cycle:Hand_geo - 400036: Cyclist_Lady___cycle:Hemet_geo - 400038: Cyclist_Lady___cycle:Shoe_geo - 400040: Cyclist_Lady_Character - 400042: Front_Wheel - 400044: FT_wheel_Ball - 400046: ft_wheel_suspention - 400048: handle - 400050: joint2 - 400052: joint3 - 400054: //RootNode - 400056: L_Ankle_J - 400058: L_Arm_J - 400060: L_Ball_J - 400062: L_Clavicle_J - 400064: L_Elbow_J - 400066: L_Hip_J - 400068: L_Index_01_J - 400070: L_Index_02_J - 400072: L_Index_03_J - 400074: L_Knee_J - 400076: L_Middle_01_J - 400078: L_Middle_02_J - 400080: L_Middle_03_J - 400082: L_ProWrist_J - 400084: L_Thumb_01_J - 400086: L_Thumb_02_J - 400088: L_Toe_J - 400090: L_Wrist_J - 400092: Neck_J - 400094: pedal_J - 400096: Peddle - 400098: Pelvis_J - 400100: R_Ankle_J - 400102: R_Arm_J - 400104: R_Ball_J - 400106: R_Clavicle_J - 400108: R_Elbow_J - 400110: R_Hip_J - 400112: R_Index_01_J - 400114: R_Index_02_J - 400116: R_Index_03_J - 400118: R_Knee_J - 400120: R_Middle_01_J - 400122: R_Middle_02_J - 400124: R_Middle_03_J - 400126: R_ProWrist_J - 400128: R_Thumb_01_J - 400130: R_Thumb_02_J - 400132: R_Toe_J - 400134: R_Wrist_J - 400136: Root_J - 400138: Root_J 1 - 400140: Spline_01_J - 400142: Spline_02_J - 4300000: Cyclist_Lady___cycle:Body_geo - 4300002: Cyclist_Lady___cycle:Hair_geo - 4300004: Cyclist_Lady___cycle:Goggles_geo - 4300006: Cyclist_Lady___cycle:Eye_geo - 4300008: Cyclist_Lady___cycle:Hemet_geo - 4300010: Cyclist_Lady___cycle:Gloves_geo - 4300012: Cyclist_Lady___cycle:Shoe_geo - 4300014: Cyclist_Lady___cycle:Hand_geo - 4300016: Front_Wheel - 4300018: Back_Wheel - 4300020: Peddle - 4300022: Cycle_body - 7400000: Take 001 - 9500000: //RootNode - 13700000: Back_Wheel - 13700002: Cycle_body - 13700004: Cyclist_Lady___cycle:Body_geo - 13700006: Cyclist_Lady___cycle:Eye_geo - 13700008: Cyclist_Lady___cycle:Gloves_geo - 13700010: Cyclist_Lady___cycle:Goggles_geo - 13700012: Cyclist_Lady___cycle:Hair_geo - 13700014: Cyclist_Lady___cycle:Hand_geo - 13700016: Cyclist_Lady___cycle:Hemet_geo - 13700018: Cyclist_Lady___cycle:Shoe_geo - 13700020: Front_Wheel - 13700022: Peddle + serializedVersion: 19301 + internalIDToNameTable: + - first: + 1: 100000 + second: Back_Wheel + - first: + 1: 100002 + second: Bike + - first: + 1: 100004 + second: bk_handle + - first: + 1: 100006 + second: bk_susp_child + - first: + 1: 100008 + second: bk_susp_pare + - first: + 1: 100010 + second: bk_suspention + - first: + 1: 100012 + second: bk_wheel + - first: + 1: 100014 + second: bk_wheel0 + - first: + 1: 100016 + second: body1 + - first: + 1: 100018 + second: Chest_J + - first: + 1: 100020 + second: Cycle_body + - first: + 1: 100022 + second: Cyclist_Lady + - first: + 1: 100024 + second: Cyclist_Lady___cycle:Body_geo + - first: + 1: 100026 + second: Cyclist_Lady___cycle:Eye_geo + - first: + 1: 100028 + second: Cyclist_Lady___cycle:Gloves_geo + - first: + 1: 100030 + second: Cyclist_Lady___cycle:Goggles_geo + - first: + 1: 100032 + second: Cyclist_Lady___cycle:Hair_geo + - first: + 1: 100034 + second: Cyclist_Lady___cycle:Hand_geo + - first: + 1: 100036 + second: Cyclist_Lady___cycle:Hemet_geo + - first: + 1: 100038 + second: Cyclist_Lady___cycle:Shoe_geo + - first: + 1: 100040 + second: Cyclist_Lady_Character + - first: + 1: 100042 + second: Front_Wheel + - first: + 1: 100044 + second: FT_wheel_Ball + - first: + 1: 100046 + second: ft_wheel_suspention + - first: + 1: 100048 + second: handle + - first: + 1: 100050 + second: joint2 + - first: + 1: 100052 + second: joint3 + - first: + 1: 100054 + second: //RootNode + - first: + 1: 100056 + second: L_Ankle_J + - first: + 1: 100058 + second: L_Arm_J + - first: + 1: 100060 + second: L_Ball_J + - first: + 1: 100062 + second: L_Clavicle_J + - first: + 1: 100064 + second: L_Elbow_J + - first: + 1: 100066 + second: L_Hip_J + - first: + 1: 100068 + second: L_Index_01_J + - first: + 1: 100070 + second: L_Index_02_J + - first: + 1: 100072 + second: L_Index_03_J + - first: + 1: 100074 + second: L_Knee_J + - first: + 1: 100076 + second: L_Middle_01_J + - first: + 1: 100078 + second: L_Middle_02_J + - first: + 1: 100080 + second: L_Middle_03_J + - first: + 1: 100082 + second: L_ProWrist_J + - first: + 1: 100084 + second: L_Thumb_01_J + - first: + 1: 100086 + second: L_Thumb_02_J + - first: + 1: 100088 + second: L_Toe_J + - first: + 1: 100090 + second: L_Wrist_J + - first: + 1: 100092 + second: Neck_J + - first: + 1: 100094 + second: pedal_J + - first: + 1: 100096 + second: Peddle + - first: + 1: 100098 + second: Pelvis_J + - first: + 1: 100100 + second: R_Ankle_J + - first: + 1: 100102 + second: R_Arm_J + - first: + 1: 100104 + second: R_Ball_J + - first: + 1: 100106 + second: R_Clavicle_J + - first: + 1: 100108 + second: R_Elbow_J + - first: + 1: 100110 + second: R_Hip_J + - first: + 1: 100112 + second: R_Index_01_J + - first: + 1: 100114 + second: R_Index_02_J + - first: + 1: 100116 + second: R_Index_03_J + - first: + 1: 100118 + second: R_Knee_J + - first: + 1: 100120 + second: R_Middle_01_J + - first: + 1: 100122 + second: R_Middle_02_J + - first: + 1: 100124 + second: R_Middle_03_J + - first: + 1: 100126 + second: R_ProWrist_J + - first: + 1: 100128 + second: R_Thumb_01_J + - first: + 1: 100130 + second: R_Thumb_02_J + - first: + 1: 100132 + second: R_Toe_J + - first: + 1: 100134 + second: R_Wrist_J + - first: + 1: 100136 + second: Root_J + - first: + 1: 100138 + second: Root_J 1 + - first: + 1: 100140 + second: Spline_01_J + - first: + 1: 100142 + second: Spline_02_J + - first: + 4: 400000 + second: Back_Wheel + - first: + 4: 400002 + second: Bike + - first: + 4: 400004 + second: bk_handle + - first: + 4: 400006 + second: bk_susp_child + - first: + 4: 400008 + second: bk_susp_pare + - first: + 4: 400010 + second: bk_suspention + - first: + 4: 400012 + second: bk_wheel + - first: + 4: 400014 + second: bk_wheel0 + - first: + 4: 400016 + second: body1 + - first: + 4: 400018 + second: Chest_J + - first: + 4: 400020 + second: Cycle_body + - first: + 4: 400022 + second: Cyclist_Lady + - first: + 4: 400024 + second: Cyclist_Lady___cycle:Body_geo + - first: + 4: 400026 + second: Cyclist_Lady___cycle:Eye_geo + - first: + 4: 400028 + second: Cyclist_Lady___cycle:Gloves_geo + - first: + 4: 400030 + second: Cyclist_Lady___cycle:Goggles_geo + - first: + 4: 400032 + second: Cyclist_Lady___cycle:Hair_geo + - first: + 4: 400034 + second: Cyclist_Lady___cycle:Hand_geo + - first: + 4: 400036 + second: Cyclist_Lady___cycle:Hemet_geo + - first: + 4: 400038 + second: Cyclist_Lady___cycle:Shoe_geo + - first: + 4: 400040 + second: Cyclist_Lady_Character + - first: + 4: 400042 + second: Front_Wheel + - first: + 4: 400044 + second: FT_wheel_Ball + - first: + 4: 400046 + second: ft_wheel_suspention + - first: + 4: 400048 + second: handle + - first: + 4: 400050 + second: joint2 + - first: + 4: 400052 + second: joint3 + - first: + 4: 400054 + second: //RootNode + - first: + 4: 400056 + second: L_Ankle_J + - first: + 4: 400058 + second: L_Arm_J + - first: + 4: 400060 + second: L_Ball_J + - first: + 4: 400062 + second: L_Clavicle_J + - first: + 4: 400064 + second: L_Elbow_J + - first: + 4: 400066 + second: L_Hip_J + - first: + 4: 400068 + second: L_Index_01_J + - first: + 4: 400070 + second: L_Index_02_J + - first: + 4: 400072 + second: L_Index_03_J + - first: + 4: 400074 + second: L_Knee_J + - first: + 4: 400076 + second: L_Middle_01_J + - first: + 4: 400078 + second: L_Middle_02_J + - first: + 4: 400080 + second: L_Middle_03_J + - first: + 4: 400082 + second: L_ProWrist_J + - first: + 4: 400084 + second: L_Thumb_01_J + - first: + 4: 400086 + second: L_Thumb_02_J + - first: + 4: 400088 + second: L_Toe_J + - first: + 4: 400090 + second: L_Wrist_J + - first: + 4: 400092 + second: Neck_J + - first: + 4: 400094 + second: pedal_J + - first: + 4: 400096 + second: Peddle + - first: + 4: 400098 + second: Pelvis_J + - first: + 4: 400100 + second: R_Ankle_J + - first: + 4: 400102 + second: R_Arm_J + - first: + 4: 400104 + second: R_Ball_J + - first: + 4: 400106 + second: R_Clavicle_J + - first: + 4: 400108 + second: R_Elbow_J + - first: + 4: 400110 + second: R_Hip_J + - first: + 4: 400112 + second: R_Index_01_J + - first: + 4: 400114 + second: R_Index_02_J + - first: + 4: 400116 + second: R_Index_03_J + - first: + 4: 400118 + second: R_Knee_J + - first: + 4: 400120 + second: R_Middle_01_J + - first: + 4: 400122 + second: R_Middle_02_J + - first: + 4: 400124 + second: R_Middle_03_J + - first: + 4: 400126 + second: R_ProWrist_J + - first: + 4: 400128 + second: R_Thumb_01_J + - first: + 4: 400130 + second: R_Thumb_02_J + - first: + 4: 400132 + second: R_Toe_J + - first: + 4: 400134 + second: R_Wrist_J + - first: + 4: 400136 + second: Root_J + - first: + 4: 400138 + second: Root_J 1 + - first: + 4: 400140 + second: Spline_01_J + - first: + 4: 400142 + second: Spline_02_J + - first: + 43: 4300000 + second: Cyclist_Lady___cycle:Body_geo + - first: + 43: 4300002 + second: Cyclist_Lady___cycle:Hair_geo + - first: + 43: 4300004 + second: Cyclist_Lady___cycle:Goggles_geo + - first: + 43: 4300006 + second: Cyclist_Lady___cycle:Eye_geo + - first: + 43: 4300008 + second: Cyclist_Lady___cycle:Hemet_geo + - first: + 43: 4300010 + second: Cyclist_Lady___cycle:Gloves_geo + - first: + 43: 4300012 + second: Cyclist_Lady___cycle:Shoe_geo + - first: + 43: 4300014 + second: Cyclist_Lady___cycle:Hand_geo + - first: + 43: 4300016 + second: Front_Wheel + - first: + 43: 4300018 + second: Back_Wheel + - first: + 43: 4300020 + second: Peddle + - first: + 43: 4300022 + second: Cycle_body + - first: + 74: 7400000 + second: StrengthApply_01 + - first: + 95: 9500000 + second: //RootNode + - first: + 137: 13700000 + second: Back_Wheel + - first: + 137: 13700002 + second: Cycle_body + - first: + 137: 13700004 + second: Cyclist_Lady___cycle:Body_geo + - first: + 137: 13700006 + second: Cyclist_Lady___cycle:Eye_geo + - first: + 137: 13700008 + second: Cyclist_Lady___cycle:Gloves_geo + - first: + 137: 13700010 + second: Cyclist_Lady___cycle:Goggles_geo + - first: + 137: 13700012 + second: Cyclist_Lady___cycle:Hair_geo + - first: + 137: 13700014 + second: Cyclist_Lady___cycle:Hand_geo + - first: + 137: 13700016 + second: Cyclist_Lady___cycle:Hemet_geo + - first: + 137: 13700018 + second: Cyclist_Lady___cycle:Shoe_geo + - first: + 137: 13700020 + second: Front_Wheel + - first: + 137: 13700022 + second: Peddle + externalObjects: + - first: + type: UnityEngine:Material + assembly: UnityEngine.CoreModule + name: Cyclist_Lady___cycle_Body_face_t + second: {fileID: 2100000, guid: 6f41f21cb888a3f4ab4b29fcfcb6bb92, type: 2} + - first: + type: UnityEngine:Material + assembly: UnityEngine.CoreModule + name: Cyclist_Lady___cycle_Helmet_gloves_Shoe_t + second: {fileID: 2100000, guid: 0c2661f2c8dd64c46bef90c24ec4494f, type: 2} + - first: + type: UnityEngine:Material + assembly: UnityEngine.CoreModule + name: lambert7 + second: {fileID: 2100000, guid: 9ff8084f124c39d44a9e1780ac962de6, type: 2} materials: - importMaterials: 1 + materialImportMode: 1 materialName: 0 materialSearch: 1 + materialLocation: 0 animations: legacyGenerateAnimations: 4 bakeSimulation: 0 - resampleRotations: 1 + resampleCurves: 1 optimizeGameObjects: 0 motionNodeName: + rigImportErrors: + rigImportWarnings: animationImportErrors: animationImportWarnings: animationRetargetingWarnings: animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 animationCompression: 1 animationRotationError: 0.5 animationPositionError: 0.5 animationScaleError: 0.5 animationWrapMode: 0 extraExposedTransformPaths: [] - clipAnimations: [] + extraUserProperties: [] + clipAnimations: + - serializedVersion: 16 + name: StrengthApply_01 + takeName: Take 001 + internalID: 0 + firstFrame: 1 + lastFrame: 25 + wrapMode: 0 + orientationOffsetY: 0 + level: 0 + cycleOffset: 0 + loop: 0 + hasAdditiveReferencePose: 0 + loopTime: 1 + loopBlend: 0 + loopBlendOrientation: 0 + loopBlendPositionY: 0 + loopBlendPositionXZ: 0 + keepOriginalOrientation: 0 + keepOriginalPositionY: 1 + keepOriginalPositionXZ: 0 + heightFromFeet: 0 + mirror: 0 + bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000 + curves: [] + events: [] + transformMask: [] + maskType: 3 + maskSource: {instanceID: 0} + additiveReferencePoseFrame: 1 isReadable: 1 meshes: lODScreenPercentages: [] globalScale: 100 meshCompression: 0 addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importVisibility: 0 importBlendShapes: 1 + importCameras: 0 + importLights: 0 + fileIdsGeneration: 1 swapUVChannels: 0 generateSecondaryUV: 0 useFileUnits: 1 - optimizeMeshForGPU: 1 keepQuads: 0 weldVertices: 1 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + meshOptimizationFlags: -1 + indexFormat: 1 secondaryUVAngleDistortion: 8 secondaryUVAreaDistortion: 15.000001 secondaryUVHardAngle: 88 @@ -218,9 +618,14 @@ ModelImporter: normalSmoothAngle: 60 normalImportMode: 0 tangentImportMode: 3 + normalCalculationMode: 0 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] importAnimation: 1 - copyAvatar: 0 humanDescription: + serializedVersion: 3 human: [] skeleton: [] armTwist: 0.5 @@ -230,11 +635,16 @@ ModelImporter: armStretch: 0.05 legStretch: 0.05 feetSpacing: 0 + globalScale: 100 rootMotionBoneName: hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 0 lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 animationType: 2 humanoidOversampling: 1 + avatarSetup: 1 additionalBone: 0 userData: assetBundleName: diff --git a/Assets/Models/Cyclist animations HD/AnimationClips/PlayerBasicAnimator.controller b/Assets/Models/Cyclist animations HD/AnimationClips/PlayerBasicAnimator.controller index c4c20e69..87ba6861 100644 --- a/Assets/Models/Cyclist animations HD/AnimationClips/PlayerBasicAnimator.controller +++ b/Assets/Models/Cyclist animations HD/AnimationClips/PlayerBasicAnimator.controller @@ -1,30 +1,5 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!1101 &-9164923412225952457 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: - - m_ConditionMode: 4 - m_ConditionEvent: Speed - m_EventTreshold: 1 - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 4337543228220508350} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0.027248496 - m_ExitTime: 0.30988213 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 --- !u!1107 &-8337007608510410168 AnimatorStateMachine: serializedVersion: 5 @@ -48,7 +23,13 @@ AnimatorStateMachine: m_Position: {x: 300, y: 370, z: 0} - serializedVersion: 1 m_State: {fileID: -7209952864988691809} - m_Position: {x: 510, y: 230, z: 0} + m_Position: {x: 570, y: 230, z: 0} + - serializedVersion: 1 + m_State: {fileID: -7110948734893641493} + m_Position: {x: 520, y: 320, z: 0} + - serializedVersion: 1 + m_State: {fileID: -2278438292350793016} + m_Position: {x: 560, y: 80, z: 0} m_ChildStateMachines: [] m_AnyStateTransitions: [] m_EntryTransitions: [] @@ -72,6 +53,7 @@ AnimatorState: m_Transitions: - {fileID: 791284094300681432} - {fileID: -2468587580707141937} + - {fileID: 9020056473776703268} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 @@ -87,6 +69,64 @@ AnimatorState: m_MirrorParameter: m_CycleOffsetParameter: m_TimeParameter: +--- !u!1102 &-7110948734893641493 +AnimatorState: + serializedVersion: 5 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: standUp + m_Speed: 1 + m_CycleOffset: 0 + m_Transitions: + - {fileID: 5565566189726895099} + - {fileID: -6985478125094372461} + - {fileID: 7210235029615547414} + - {fileID: 2991198330548817723} + m_StateMachineBehaviours: [] + m_Position: {x: 50, y: 50, z: 0} + m_IKOnFeet: 0 + m_WriteDefaultValues: 1 + m_Mirror: 0 + m_SpeedParameterActive: 0 + m_MirrorParameterActive: 0 + m_CycleOffsetParameterActive: 0 + m_TimeParameterActive: 0 + m_Motion: {fileID: 7400000, guid: 3a841865ff3bcfb42942c8d6e9a36080, type: 3} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: +--- !u!1101 &-6985478125094372461 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 4 + m_ConditionEvent: Slope + m_EventTreshold: 5 + - m_ConditionMode: 4 + m_ConditionEvent: Speed + m_EventTreshold: 35 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -5166529910487830129} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.75 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1101 &-6169330986109038244 AnimatorStateTransition: m_ObjectHideFlags: 1 @@ -97,7 +137,7 @@ AnimatorStateTransition: m_Conditions: - m_ConditionMode: 3 m_ConditionEvent: Speed - m_EventTreshold: 30 + m_EventTreshold: 35 m_DstStateMachine: {fileID: 0} m_DstState: {fileID: -7209952864988691809} m_Solo: 0 @@ -112,6 +152,56 @@ AnimatorStateTransition: m_InterruptionSource: 0 m_OrderedInterruption: 1 m_CanTransitionToSelf: 1 +--- !u!1101 &-5649430080332407828 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 4 + m_ConditionEvent: Speed + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 4337543228220508350} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.75 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &-5579500509514681937 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 3 + m_ConditionEvent: Slope + m_EventTreshold: 5 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -7110948734893641493} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.79310346 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1102 &-5166529910487830129 AnimatorState: serializedVersion: 5 @@ -123,9 +213,90 @@ AnimatorState: m_Speed: 1 m_CycleOffset: 0 m_Transitions: - - {fileID: -9164923412225952457} - {fileID: 6431271733243048427} - {fileID: -6169330986109038244} + - {fileID: -3690706345959139472} + - {fileID: 2718087226547410217} + m_StateMachineBehaviours: [] + m_Position: {x: 50, y: 50, z: 0} + m_IKOnFeet: 0 + m_WriteDefaultValues: 1 + m_Mirror: 0 + m_SpeedParameterActive: 0 + m_MirrorParameterActive: 0 + m_CycleOffsetParameterActive: 0 + m_TimeParameterActive: 0 + m_Motion: {fileID: 7400000, guid: 362224225d2a8a64cbe8f6c561493ecf, type: 3} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: +--- !u!1101 &-3690706345959139472 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 3 + m_ConditionEvent: Slope + m_EventTreshold: 5 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -7110948734893641493} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.79310346 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &-2468587580707141937 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 4 + m_ConditionEvent: Speed + m_EventTreshold: 35 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -5166529910487830129} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.79310346 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1102 &-2278438292350793016 +AnimatorState: + serializedVersion: 5 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: RideSlow + m_Speed: 1 + m_CycleOffset: 0 + m_Transitions: + - {fileID: 5256558035582825342} + - {fileID: -5649430080332407828} + - {fileID: 4950297653642550959} + - {fileID: -5579500509514681937} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 @@ -141,31 +312,6 @@ AnimatorState: m_MirrorParameter: m_CycleOffsetParameter: m_TimeParameter: ---- !u!1101 &-2468587580707141937 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: - - m_ConditionMode: 4 - m_ConditionEvent: Speed - m_EventTreshold: 30 - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: -5166529910487830129} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.79310346 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 --- !u!91 &9100000 AnimatorController: m_ObjectHideFlags: 0 @@ -180,19 +326,25 @@ AnimatorController: m_DefaultFloat: 0 m_DefaultInt: 0 m_DefaultBool: 0 - m_Controller: {fileID: 9100000} + m_Controller: {fileID: 0} - m_Name: ReachEnd m_Type: 4 m_DefaultFloat: 0 m_DefaultInt: 0 m_DefaultBool: 0 - m_Controller: {fileID: 9100000} + m_Controller: {fileID: 0} - m_Name: Speed m_Type: 1 m_DefaultFloat: 30 m_DefaultInt: 0 m_DefaultBool: 0 - m_Controller: {fileID: 9100000} + m_Controller: {fileID: 0} + - m_Name: Slope + m_Type: 1 + m_DefaultFloat: 5 + m_DefaultInt: 0 + m_DefaultBool: 0 + m_Controller: {fileID: 0} m_AnimatorLayers: - serializedVersion: 5 m_Name: Base Layer @@ -258,6 +410,84 @@ AnimatorStateTransition: m_InterruptionSource: 0 m_OrderedInterruption: 1 m_CanTransitionToSelf: 1 +--- !u!1101 &2580430195514501474 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 3 + m_ConditionEvent: Speed + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -2278438292350793016} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.85 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &2718087226547410217 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 4 + m_ConditionEvent: Speed + m_EventTreshold: 20 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -2278438292350793016} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.79310346 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &2991198330548817723 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 4 + m_ConditionEvent: Slope + m_EventTreshold: 5 + - m_ConditionMode: 4 + m_ConditionEvent: Speed + m_EventTreshold: 20 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -2278438292350793016} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.75 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1101 &3513795484857918862 AnimatorStateTransition: m_ObjectHideFlags: 1 @@ -291,7 +521,7 @@ AnimatorState: m_Speed: 1 m_CycleOffset: 0 m_Transitions: - - {fileID: 7288097441030002846} + - {fileID: 2580430195514501474} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 @@ -333,6 +563,84 @@ AnimatorState: m_MirrorParameter: m_CycleOffsetParameter: m_TimeParameter: +--- !u!1101 &4950297653642550959 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 1 + m_ConditionEvent: ReachEnd + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 372171977578010894} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.75 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &5256558035582825342 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 3 + m_ConditionEvent: Speed + m_EventTreshold: 20 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -5166529910487830129} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.75 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &5565566189726895099 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 4 + m_ConditionEvent: Slope + m_EventTreshold: 5 + - m_ConditionMode: 3 + m_ConditionEvent: Speed + m_EventTreshold: 35 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -7209952864988691809} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.75 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1101 &6431271733243048427 AnimatorStateTransition: m_ObjectHideFlags: 1 @@ -358,7 +666,32 @@ AnimatorStateTransition: m_InterruptionSource: 0 m_OrderedInterruption: 1 m_CanTransitionToSelf: 1 ---- !u!1101 &7288097441030002846 +--- !u!1101 &7210235029615547414 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 1 + m_ConditionEvent: ReachEnd + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 372171977578010894} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.75 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &9020056473776703268 AnimatorStateTransition: m_ObjectHideFlags: 1 m_CorrespondingSourceObject: {fileID: 0} @@ -367,19 +700,19 @@ AnimatorStateTransition: m_Name: m_Conditions: - m_ConditionMode: 3 - m_ConditionEvent: Speed - m_EventTreshold: 0 + m_ConditionEvent: Slope + m_EventTreshold: 5 m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: -5166529910487830129} + m_DstState: {fileID: -7110948734893641493} m_Solo: 0 m_Mute: 0 m_IsExit: 0 serializedVersion: 3 - m_TransitionDuration: 0.76936924 - m_TransitionOffset: 0.028269805 - m_ExitTime: 0.63192606 - m_HasExitTime: 0 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.79310346 + m_HasExitTime: 1 m_HasFixedDuration: 1 - m_InterruptionSource: 2 + m_InterruptionSource: 0 m_OrderedInterruption: 1 m_CanTransitionToSelf: 1 diff --git a/Assets/Scenes/Ride/Scripts/AbstractPlayer.cs b/Assets/Scenes/Ride/Scripts/AbstractPlayer.cs index 8ff09661..6c6a31f7 100644 --- a/Assets/Scenes/Ride/Scripts/AbstractPlayer.cs +++ b/Assets/Scenes/Ride/Scripts/AbstractPlayer.cs @@ -124,7 +124,24 @@ namespace Assets.Scenes.Ride.Scripts if (characterAnimator != null && mapData != null) { characterAnimator.SetFloat("Speed", (float)speed); - if (totalDistance >= mapData.TotalDistance) + characterAnimator.SetFloat("Slope", (float)currentSlope); + if (currentSlope > 5) + { + characterAnimator.speed = 0.5f; + } + else + { + characterAnimator.speed = 1f; + } + //if (speed < 20 && speed >= 10) + //{ + // characterAnimator.speed = 0.8f; + //} + //if (speed >= 20) + //{ + // characterAnimator.speed = 1f; + //} + if (totalDistance >= mapData.TotalDistance) { characterAnimator.SetBool("ReachEnd", true);//到达终点 } diff --git a/Assets/Scenes/Ride/Scripts/PlayerController.cs b/Assets/Scenes/Ride/Scripts/PlayerController.cs index e483fd36..c0120cce 100644 --- a/Assets/Scenes/Ride/Scripts/PlayerController.cs +++ b/Assets/Scenes/Ride/Scripts/PlayerController.cs @@ -4,6 +4,7 @@ using UnityEngine.SceneManagement; using System.Collections.Generic; using System.Linq; using Assets.Scenes.Ride.Scripts.Model.RiderModels; +using System; namespace Assets.Scenes.Ride.Scripts { @@ -48,7 +49,8 @@ namespace Assets.Scenes.Ride.Scripts weight = App.CurrentUser.Weight; bicycleWeight = App.CurrentUser.BicycleWeight; #if UNITY_EDITOR - power = 500;//测试功率 + System.Random rd = new System.Random(); + power = 500; //rd.Next(150, 300);////测试功率 #endif mainController.TrackResistance(currentSlope * App.rideSetting.sensitivity / 100); if (power > 0) @@ -56,6 +58,11 @@ namespace Assets.Scenes.Ride.Scripts speed = Helper.CalculateSpeed(elevation, currentSlope, power, weight, bicycleWeight); distance = mainController.UpdateDistance(speed); totalDistance += distance; + } + else + { + speed = 0; + distance = 0; } //计算累计爬升