diff options
author | chai <215380520@qq.com> | 2024-03-18 17:59:44 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2024-03-18 17:59:44 +0800 |
commit | 974a6e1c9c1415d64d6c0b8f4cace3795a8a7875 (patch) | |
tree | 74bf47f1e60d79a1f8a0601aed53b80b36bf8994 | |
parent | 1ccf8b51fc199dbefadea717505242f7968f4b3e (diff) |
*misc
10 files changed, 523 insertions, 62 deletions
diff --git a/ActiveRagdoll/Assets/TABG/Prefabs/human_rigging.prefab b/ActiveRagdoll/Assets/TABG/Prefabs/human_rigging.prefab index c315257..3922b09 100644 --- a/ActiveRagdoll/Assets/TABG/Prefabs/human_rigging.prefab +++ b/ActiveRagdoll/Assets/TABG/Prefabs/human_rigging.prefab @@ -1,5 +1,199 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: +--- !u!1 &984858210 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 984858211} + - component: {fileID: 984858214} + - component: {fileID: 984858213} + - component: {fileID: 984858212} + m_Layer: 0 + m_Name: PlayerCollider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &984858211 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 984858210} + m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068} + m_LocalPosition: {x: 0, y: 0.0419, z: 0} + m_LocalScale: {x: 0.15, y: 0.1826, z: 0.15} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2610225499071172934} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0} +--- !u!23 &984858214 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 984858210} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 9d4f4085b5ce801428050308889507e8, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &984858213 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 984858210} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!135 &984858212 +SphereCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 984858210} + m_Material: {fileID: 13400000, guid: d0312db448abda64689a354dae4b601a, type: 2} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.4 + m_Center: {x: 0, y: 0, z: -0.00000013411045} +--- !u!1 &2047997612 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2047997613} + - component: {fileID: 2047997616} + - component: {fileID: 2047997615} + - component: {fileID: 2047997614} + m_Layer: 0 + m_Name: PlayerCollider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2047997613 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2047997612} + m_LocalRotation: {x: 0.7071068, y: -0, z: -0, w: 0.7071068} + m_LocalPosition: {x: 0, y: 0.04189998, z: 0} + m_LocalScale: {x: 0.15, y: 0.18259999, z: 0.15} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 6228351505900064062} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0} +--- !u!23 &2047997616 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2047997612} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 9d4f4085b5ce801428050308889507e8, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &2047997615 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2047997612} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!135 &2047997614 +SphereCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2047997612} + m_Material: {fileID: 13400000, guid: d0312db448abda64689a354dae4b601a, type: 2} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.4 + m_Center: {x: 0, y: 0, z: -0.00000013411045} --- !u!1 &352791520568127773 GameObject: m_ObjectHideFlags: 0 @@ -29,7 +223,8 @@ Transform: m_LocalPosition: {x: -0.0681456, y: -0.9878551, z: -0.040292345} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] + m_Children: + - {fileID: 984858211} m_Father: {fileID: 861688529590854405} m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -250,7 +445,8 @@ Transform: m_LocalPosition: {x: 0.0681456, y: -0.9878551, z: -0.040292345} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] + m_Children: + - {fileID: 2047997613} m_Father: {fileID: 861688529590854405} m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -422,20 +618,20 @@ ConfigurableJoint: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1198478719857577481} - m_ConnectedBody: {fileID: 0} + m_ConnectedBody: {fileID: 1239621544883570514} m_ConnectedArticulationBody: {fileID: 0} - m_Anchor: {x: 0, y: 0, z: 0} - m_Axis: {x: 1, y: 0, z: 0} + m_Anchor: {x: 0, y: 0, z: -0.22} + m_Axis: {x: 0, y: 1, z: 0} m_AutoConfigureConnectedAnchor: 1 m_ConnectedAnchor: {x: 0, y: 0, z: 0} serializedVersion: 2 m_SecondaryAxis: {x: 0, y: 1, z: 0} - m_XMotion: 2 - m_YMotion: 2 - m_ZMotion: 2 - m_AngularXMotion: 2 - m_AngularYMotion: 2 - m_AngularZMotion: 2 + m_XMotion: 0 + m_YMotion: 0 + m_ZMotion: 0 + m_AngularXMotion: 1 + m_AngularYMotion: 1 + m_AngularZMotion: 1 m_LinearLimitSpring: spring: 0 damper: 0 @@ -444,10 +640,10 @@ ConfigurableJoint: bounciness: 0 contactDistance: 0 m_AngularXLimitSpring: - spring: 0 + spring: 500 damper: 0 m_LowAngularXLimit: - limit: 0 + limit: -177 bounciness: 0 contactDistance: 0 m_HighAngularXLimit: @@ -462,7 +658,7 @@ ConfigurableJoint: bounciness: 0 contactDistance: 0 m_AngularZLimit: - limit: 0 + limit: 11.56 bounciness: 0 contactDistance: 0 m_TargetPosition: {x: 0, y: 0, z: 0} @@ -500,7 +696,7 @@ ConfigurableJoint: positionSpring: 0 positionDamper: 0 maximumForce: 3.4028233e+38 - m_ProjectionMode: 0 + m_ProjectionMode: 1 m_ProjectionDistance: 0.1 m_ProjectionAngle: 180 m_ConfiguredInWorldSpace: 0 @@ -508,7 +704,7 @@ ConfigurableJoint: m_BreakForce: Infinity m_BreakTorque: Infinity m_EnableCollision: 0 - m_EnablePreprocessing: 1 + m_EnablePreprocessing: 0 m_MassScale: 1 m_ConnectedMassScale: 1 --- !u!1 &1254990767818926415 @@ -521,6 +717,7 @@ GameObject: m_Component: - component: {fileID: 861688529590854405} - component: {fileID: 6902122112011267104} + - component: {fileID: 8879528567158505374} m_Layer: 0 m_Name: Rigidbody m_TagString: Untagged @@ -569,6 +766,19 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: size: 0.1 +--- !u!114 &8879528567158505374 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1254990767818926415} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 93ab2bd59aec043479576f7402aba9f0, type: 3} + m_Name: + m_EditorClassIdentifier: + allRigs: [] --- !u!1 &1515111015024255430 GameObject: m_ObjectHideFlags: 0 @@ -769,6 +979,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 1666344766112317020} + - component: {fileID: 7828630652246571135} m_Layer: 0 m_Name: human_rigging m_TagString: Untagged @@ -794,6 +1005,22 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &7828630652246571135 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2047971321291531494} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5b4ad5d4d6e961844a49b7145c877793, type: 3} + m_Name: + m_EditorClassIdentifier: + rigsToLift: + - {fileID: 5028902801156152278} + - {fileID: 7724590171357447542} + force: 30 --- !u!1 &2132482246703060397 GameObject: m_ObjectHideFlags: 0 @@ -999,20 +1226,20 @@ ConfigurableJoint: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2411311702239281492} - m_ConnectedBody: {fileID: 0} + m_ConnectedBody: {fileID: 3691458469473146159} m_ConnectedArticulationBody: {fileID: 0} - m_Anchor: {x: 0, y: 0, z: 0} - m_Axis: {x: 1, y: 0, z: 0} + m_Anchor: {x: 0, y: 0, z: -0.22} + m_Axis: {x: 0, y: 1, z: 0} m_AutoConfigureConnectedAnchor: 1 m_ConnectedAnchor: {x: 0, y: 0, z: 0} serializedVersion: 2 m_SecondaryAxis: {x: 0, y: 1, z: 0} - m_XMotion: 2 - m_YMotion: 2 - m_ZMotion: 2 - m_AngularXMotion: 2 - m_AngularYMotion: 2 - m_AngularZMotion: 2 + m_XMotion: 0 + m_YMotion: 0 + m_ZMotion: 0 + m_AngularXMotion: 1 + m_AngularYMotion: 1 + m_AngularZMotion: 1 m_LinearLimitSpring: spring: 0 damper: 0 @@ -1021,14 +1248,14 @@ ConfigurableJoint: bounciness: 0 contactDistance: 0 m_AngularXLimitSpring: - spring: 0 + spring: 500 damper: 0 m_LowAngularXLimit: limit: 0 bounciness: 0 contactDistance: 0 m_HighAngularXLimit: - limit: 0 + limit: 177 bounciness: 0 contactDistance: 0 m_AngularYZLimitSpring: @@ -1039,7 +1266,7 @@ ConfigurableJoint: bounciness: 0 contactDistance: 0 m_AngularZLimit: - limit: 0 + limit: 11.56 bounciness: 0 contactDistance: 0 m_TargetPosition: {x: 0, y: 0, z: 0} @@ -1077,7 +1304,7 @@ ConfigurableJoint: positionSpring: 0 positionDamper: 0 maximumForce: 3.4028233e+38 - m_ProjectionMode: 0 + m_ProjectionMode: 1 m_ProjectionDistance: 0.1 m_ProjectionAngle: 180 m_ConfiguredInWorldSpace: 0 @@ -1085,7 +1312,7 @@ ConfigurableJoint: m_BreakForce: Infinity m_BreakTorque: Infinity m_EnableCollision: 0 - m_EnablePreprocessing: 1 + m_EnablePreprocessing: 0 m_MassScale: 1 m_ConnectedMassScale: 1 --- !u!1 &2474110595537587005 @@ -1784,20 +2011,20 @@ ConfigurableJoint: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5658401667225277159} - m_ConnectedBody: {fileID: 0} + m_ConnectedBody: {fileID: 7724590171357447542} m_ConnectedArticulationBody: {fileID: 0} - m_Anchor: {x: 0, y: 0, z: 0} - m_Axis: {x: 1, y: 0, z: 0} + m_Anchor: {x: 0, y: 0, z: -0.1} + m_Axis: {x: 0, y: -1, z: 0} m_AutoConfigureConnectedAnchor: 1 - m_ConnectedAnchor: {x: 0, y: 0, z: 0} + m_ConnectedAnchor: {x: 0.116635986, y: 0, z: -0.017830601} serializedVersion: 2 m_SecondaryAxis: {x: 0, y: 1, z: 0} - m_XMotion: 2 - m_YMotion: 2 - m_ZMotion: 2 - m_AngularXMotion: 2 - m_AngularYMotion: 2 - m_AngularZMotion: 2 + m_XMotion: 0 + m_YMotion: 0 + m_ZMotion: 0 + m_AngularXMotion: 1 + m_AngularYMotion: 1 + m_AngularZMotion: 1 m_LinearLimitSpring: spring: 0 damper: 0 @@ -1809,22 +2036,22 @@ ConfigurableJoint: spring: 0 damper: 0 m_LowAngularXLimit: - limit: 0 + limit: -70 bounciness: 0 contactDistance: 0 m_HighAngularXLimit: - limit: 0 + limit: 35 bounciness: 0 contactDistance: 0 m_AngularYZLimitSpring: spring: 0 damper: 0 m_AngularYLimit: - limit: 0 + limit: 65 bounciness: 0 contactDistance: 0 m_AngularZLimit: - limit: 0 + limit: 25 bounciness: 0 contactDistance: 0 m_TargetPosition: {x: 0, y: 0, z: 0} @@ -1862,7 +2089,7 @@ ConfigurableJoint: positionSpring: 0 positionDamper: 0 maximumForce: 3.4028233e+38 - m_ProjectionMode: 0 + m_ProjectionMode: 1 m_ProjectionDistance: 0.1 m_ProjectionAngle: 180 m_ConfiguredInWorldSpace: 0 @@ -1870,7 +2097,7 @@ ConfigurableJoint: m_BreakForce: Infinity m_BreakTorque: Infinity m_EnableCollision: 0 - m_EnablePreprocessing: 1 + m_EnablePreprocessing: 0 m_MassScale: 1 m_ConnectedMassScale: 1 --- !u!1 &5992969589425681271 @@ -2250,20 +2477,20 @@ ConfigurableJoint: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7307037826757058977} - m_ConnectedBody: {fileID: 0} + m_ConnectedBody: {fileID: 7724590171357447542} m_ConnectedArticulationBody: {fileID: 0} - m_Anchor: {x: 0, y: 0, z: 0} - m_Axis: {x: 1, y: 0, z: 0} + m_Anchor: {x: 0, y: 0, z: -0.1} + m_Axis: {x: 0, y: 1, z: 0} m_AutoConfigureConnectedAnchor: 1 - m_ConnectedAnchor: {x: 0, y: 0, z: 0} + m_ConnectedAnchor: {x: -0.116635986, y: 0, z: 0} serializedVersion: 2 m_SecondaryAxis: {x: 0, y: 1, z: 0} - m_XMotion: 2 - m_YMotion: 2 - m_ZMotion: 2 - m_AngularXMotion: 2 - m_AngularYMotion: 2 - m_AngularZMotion: 2 + m_XMotion: 0 + m_YMotion: 0 + m_ZMotion: 0 + m_AngularXMotion: 1 + m_AngularYMotion: 1 + m_AngularZMotion: 1 m_LinearLimitSpring: spring: 0 damper: 0 @@ -2275,22 +2502,22 @@ ConfigurableJoint: spring: 0 damper: 0 m_LowAngularXLimit: - limit: 0 + limit: -70 bounciness: 0 contactDistance: 0 m_HighAngularXLimit: - limit: 0 + limit: 35 bounciness: 0 contactDistance: 0 m_AngularYZLimitSpring: spring: 0 damper: 0 m_AngularYLimit: - limit: 0 + limit: 65 bounciness: 0 contactDistance: 0 m_AngularZLimit: - limit: 0 + limit: 25 bounciness: 0 contactDistance: 0 m_TargetPosition: {x: 0, y: 0, z: 0} @@ -2328,7 +2555,7 @@ ConfigurableJoint: positionSpring: 0 positionDamper: 0 maximumForce: 3.4028233e+38 - m_ProjectionMode: 0 + m_ProjectionMode: 1 m_ProjectionDistance: 0.1 m_ProjectionAngle: 180 m_ConfiguredInWorldSpace: 0 @@ -2336,7 +2563,7 @@ ConfigurableJoint: m_BreakForce: Infinity m_BreakTorque: Infinity m_EnableCollision: 0 - m_EnablePreprocessing: 1 + m_EnablePreprocessing: 0 m_MassScale: 1 m_ConnectedMassScale: 1 --- !u!1 &7540932285142806653 diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Actions.meta b/ActiveRagdoll/Assets/TABG/Scripts/Actions.meta new file mode 100644 index 0000000..3a85b48 --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/Actions.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a36e934f36ddd834fbb28e30188ce310 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs b/ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs new file mode 100644 index 0000000..6c1b070 --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs @@ -0,0 +1,20 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Standing : MonoBehaviour +{ + + public Rigidbody[] rigsToLift; //Head, Torso + + public float force; + + private void FixedUpdate() + { + foreach(var rig in rigsToLift) + { + rig.AddForce(Vector3.up * force, ForceMode.Acceleration); + } + } + +} diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs.meta b/ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs.meta new file mode 100644 index 0000000..53a760d --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/Actions/Standing.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5b4ad5d4d6e961844a49b7145c877793 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ActiveRagdoll/Assets/TABG/Scripts/RigidbodyHolder.cs b/ActiveRagdoll/Assets/TABG/Scripts/RigidbodyHolder.cs new file mode 100644 index 0000000..d003697 --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/RigidbodyHolder.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; +using UnityEngine; + +// ±£´æËùÓÐ14¸ö¹Ç÷À +public class RigidbodyHolder : MonoBehaviour +{ + public Rigidbody[] allRigs; + + //private WeaponHandler weapons; + + private void Start() + { + allRigs = GetComponentsInChildren<Rigidbody>(); + //weapons = GetComponent<WeaponHandler>(); + } + + private void Update() + { + } + + public Rigidbody[] GetAllRigs() + { + return allRigs; + } +} diff --git a/ActiveRagdoll/Assets/TABG/Scripts/RigidbodyHolder.cs.meta b/ActiveRagdoll/Assets/TABG/Scripts/RigidbodyHolder.cs.meta new file mode 100644 index 0000000..cbc4eea --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/RigidbodyHolder.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 93ab2bd59aec043479576f7402aba9f0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ActiveRagdoll/Assets/default_material.mat b/ActiveRagdoll/Assets/default_material.mat new file mode 100644 index 0000000..15e6e7e --- /dev/null +++ b/ActiveRagdoll/Assets/default_material.mat @@ -0,0 +1,129 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: default_material + m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_ValidKeywords: + - _SURFACE_TYPE_TRANSPARENT + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3000 + stringTagMap: + RenderType: Transparent + disabledShaderPasses: + - DepthOnly + - SHADOWCASTER + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AlphaClip: 0 + - _Blend: 0 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 10 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 5 + - _Surface: 1 + - _WorkflowMode: 1 + - _ZWrite: 0 + m_Colors: + - _BaseColor: {r: 0.9339623, g: 0.7454775, b: 0, a: 0.53333336} + - _Color: {r: 0.9339623, g: 0.7454775, b: 0, a: 0.53333336} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] +--- !u!114 &7059074933792789457 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 5 diff --git a/ActiveRagdoll/Assets/default_material.mat.meta b/ActiveRagdoll/Assets/default_material.mat.meta new file mode 100644 index 0000000..6528863 --- /dev/null +++ b/ActiveRagdoll/Assets/default_material.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9d4f4085b5ce801428050308889507e8 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/ActiveRagdoll/Assets/foot_physics_mat.physicMaterial b/ActiveRagdoll/Assets/foot_physics_mat.physicMaterial new file mode 100644 index 0000000..88768d9 --- /dev/null +++ b/ActiveRagdoll/Assets/foot_physics_mat.physicMaterial @@ -0,0 +1,14 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!134 &13400000 +PhysicMaterial: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: foot_physics_mat + dynamicFriction: 0 + staticFriction: 0 + bounciness: 0 + frictionCombine: 3 + bounceCombine: 0 diff --git a/ActiveRagdoll/Assets/foot_physics_mat.physicMaterial.meta b/ActiveRagdoll/Assets/foot_physics_mat.physicMaterial.meta new file mode 100644 index 0000000..caf6f78 --- /dev/null +++ b/ActiveRagdoll/Assets/foot_physics_mat.physicMaterial.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d0312db448abda64689a354dae4b601a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 13400000 + userData: + assetBundleName: + assetBundleVariant: |