Add ragdoll to skeleton ai

This commit is contained in:
2024-08-08 22:05:12 +02:00
parent 173b5a074f
commit bb74823e9a
5 changed files with 1576 additions and 96 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: da5ac5e8c503e184b855f2e136d05f24
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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: Ragdoll
dynamicFriction: 0.4
staticFriction: 0.4
bounciness: 0
frictionCombine: 0
bounceCombine: 0

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ac5e4e7c9e8e4fb4d86157327613c8cb
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 13400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -9,7 +9,8 @@ GameObject:
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 6058054806151542978} - component: {fileID: 6058054806151542978}
- component: {fileID: 3792657298548673} - component: {fileID: 2546747576735522376}
- component: {fileID: 8132284051685914402}
m_Layer: 0 m_Layer: 0
m_Name: Enemy m_Name: Enemy
m_TagString: Untagged m_TagString: Untagged
@@ -33,8 +34,35 @@ Transform:
- {fileID: 1700549123680942451} - {fileID: 1700549123680942451}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!143 &3792657298548673 --- !u!54 &2546747576735522376
CharacterController: Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4528139036750849664}
serializedVersion: 4
m_Mass: 100
m_Drag: 0
m_AngularDrag: 0.05
m_CenterOfMass: {x: 0, y: 0, z: 0}
m_InertiaTensor: {x: 1, y: 1, z: 1}
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_ImplicitCom: 1
m_ImplicitTensor: 1
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 80
m_CollisionDetection: 0
--- !u!136 &8132284051685914402
CapsuleCollider:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
@@ -51,13 +79,10 @@ CharacterController:
m_IsTrigger: 0 m_IsTrigger: 0
m_ProvidesContacts: 0 m_ProvidesContacts: 0
m_Enabled: 1 m_Enabled: 1
serializedVersion: 3 serializedVersion: 2
m_Radius: 0.3
m_Height: 1.8 m_Height: 1.8
m_Radius: 0.5 m_Direction: 1
m_SlopeLimit: 45
m_StepOffset: 0.3
m_SkinWidth: 0.08
m_MinMoveDistance: 0.001
m_Center: {x: 0, y: 0.9, z: 0} m_Center: {x: 0, y: 0.9, z: 0}
--- !u!1001 &1695861871456640983 --- !u!1001 &1695861871456640983
PrefabInstance: PrefabInstance:
@@ -140,6 +165,11 @@ PrefabInstance:
propertyPath: m_Controller propertyPath: m_Controller
value: value:
objectReference: {fileID: 9100000, guid: 7951bb75337c89c42b37722102978776, type: 2} objectReference: {fileID: 9100000, guid: 7951bb75337c89c42b37722102978776, type: 2}
- target: {fileID: 95458022740784092, guid: cb4ff29f6f657bc4d94ed49c50a70be2,
type: 3}
propertyPath: m_ApplyRootMotion
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_RemovedGameObjects: [] m_RemovedGameObjects: []
m_AddedGameObjects: [] m_AddedGameObjects: []

File diff suppressed because it is too large Load Diff