game: bug fix
the ai person was able to fing the car like it has no mass add rigidbody with capsule collider to the ai person
This commit is contained in:
parent
b92b3b5d75
commit
9d44c2f928
4 changed files with 100 additions and 29 deletions
BIN
Modelling/Sources/Maya/scenes/lift.ma
(Stored with Git LFS)
BIN
Modelling/Sources/Maya/scenes/lift.ma
(Stored with Git LFS)
Binary file not shown.
|
@ -808,6 +808,8 @@ GameObject:
|
||||||
- component: {fileID: 8179579322411983252}
|
- component: {fileID: 8179579322411983252}
|
||||||
- component: {fileID: 3313027092289172340}
|
- component: {fileID: 3313027092289172340}
|
||||||
- component: {fileID: 4317789146800536370}
|
- component: {fileID: 4317789146800536370}
|
||||||
|
- component: {fileID: 1961297049292790103}
|
||||||
|
- component: {fileID: 7011060576185056730}
|
||||||
m_Layer: 8
|
m_Layer: 8
|
||||||
m_Name: AIPerson
|
m_Name: AIPerson
|
||||||
m_TagString: AIs
|
m_TagString: AIs
|
||||||
|
@ -892,6 +894,56 @@ NavMeshAgent:
|
||||||
m_BaseOffset: -0.08
|
m_BaseOffset: -0.08
|
||||||
m_WalkableMask: 4294967295
|
m_WalkableMask: 4294967295
|
||||||
m_ObstacleAvoidanceType: 3
|
m_ObstacleAvoidanceType: 3
|
||||||
|
--- !u!136 &1961297049292790103
|
||||||
|
CapsuleCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3099361323485180504}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Radius: 0.3
|
||||||
|
m_Height: 1.94
|
||||||
|
m_Direction: 1
|
||||||
|
m_Center: {x: -0.000000059604645, y: 0.88895607, z: 0.010348976}
|
||||||
|
--- !u!54 &7011060576185056730
|
||||||
|
Rigidbody:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3099361323485180504}
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Mass: 1
|
||||||
|
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: 0
|
||||||
|
m_CollisionDetection: 0
|
||||||
--- !u!1 &3344627563321929878
|
--- !u!1 &3344627563321929878
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1000,7 +1052,6 @@ GameObject:
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 3787934284119550692}
|
- component: {fileID: 3787934284119550692}
|
||||||
- component: {fileID: 4366289886226962748}
|
- component: {fileID: 4366289886226962748}
|
||||||
- component: {fileID: 878280137332734117}
|
|
||||||
m_Layer: 8
|
m_Layer: 8
|
||||||
m_Name: Armature_Mesh
|
m_Name: Armature_Mesh
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
|
@ -1146,29 +1197,6 @@ SkinnedMeshRenderer:
|
||||||
m_Center: {x: -0.000000059604645, y: -0.09214255, z: 0.026248634}
|
m_Center: {x: -0.000000059604645, y: -0.09214255, z: 0.026248634}
|
||||||
m_Extent: {x: 0.52818453, y: 0.88092995, z: 0.22050177}
|
m_Extent: {x: 0.52818453, y: 0.88092995, z: 0.22050177}
|
||||||
m_DirtyAABB: 0
|
m_DirtyAABB: 0
|
||||||
--- !u!136 &878280137332734117
|
|
||||||
CapsuleCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 3597841629992087818}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Radius: 0.3
|
|
||||||
m_Height: 1.94
|
|
||||||
m_Direction: 1
|
|
||||||
m_Center: {x: -0.000000059604645, y: 0.88895607, z: 0.010348976}
|
|
||||||
--- !u!1 &3609670818274640614
|
--- !u!1 &3609670818274640614
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -658,6 +658,11 @@ PrefabInstance:
|
||||||
propertyPath: m_ObstacleAvoidanceType
|
propertyPath: m_ObstacleAvoidanceType
|
||||||
value: 3
|
value: 3
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4317789146800536370, guid: aebcdae242e01f94b8df85895a81a0ff,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_AutoTraverseOffMeshLink
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 4366289886226962748, guid: aebcdae242e01f94b8df85895a81a0ff,
|
- target: {fileID: 4366289886226962748, guid: aebcdae242e01f94b8df85895a81a0ff,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_DynamicOccludee
|
propertyPath: m_DynamicOccludee
|
||||||
|
@ -861,7 +866,7 @@ PrefabInstance:
|
||||||
- target: {fileID: 8179579322411983252, guid: aebcdae242e01f94b8df85895a81a0ff,
|
- target: {fileID: 8179579322411983252, guid: aebcdae242e01f94b8df85895a81a0ff,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_ApplyRootMotion
|
propertyPath: m_ApplyRootMotion
|
||||||
value: 0
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8299562521504900798, guid: aebcdae242e01f94b8df85895a81a0ff,
|
- target: {fileID: 8299562521504900798, guid: aebcdae242e01f94b8df85895a81a0ff,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
@ -907,6 +912,10 @@ PrefabInstance:
|
||||||
m_RemovedGameObjects: []
|
m_RemovedGameObjects: []
|
||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
m_AddedComponents:
|
m_AddedComponents:
|
||||||
|
- targetCorrespondingSourceObject: {fileID: 3099361323485180504, guid: aebcdae242e01f94b8df85895a81a0ff,
|
||||||
|
type: 3}
|
||||||
|
insertIndex: -1
|
||||||
|
addedObject: {fileID: 2134698039}
|
||||||
- targetCorrespondingSourceObject: {fileID: 3597841629992087818, guid: aebcdae242e01f94b8df85895a81a0ff,
|
- targetCorrespondingSourceObject: {fileID: 3597841629992087818, guid: aebcdae242e01f94b8df85895a81a0ff,
|
||||||
type: 3}
|
type: 3}
|
||||||
insertIndex: -1
|
insertIndex: -1
|
||||||
|
@ -993,6 +1002,39 @@ MonoBehaviour:
|
||||||
aiPrefab: {fileID: 3099361323485180504, guid: aebcdae242e01f94b8df85895a81a0ff,
|
aiPrefab: {fileID: 3099361323485180504, guid: aebcdae242e01f94b8df85895a81a0ff,
|
||||||
type: 3}
|
type: 3}
|
||||||
maxAI: 0
|
maxAI: 0
|
||||||
|
--- !u!1 &2134698033 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 3099361323485180504, guid: aebcdae242e01f94b8df85895a81a0ff,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 1703341036}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!54 &2134698039
|
||||||
|
Rigidbody:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 2134698033}
|
||||||
|
serializedVersion: 4
|
||||||
|
m_Mass: 1
|
||||||
|
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: 0
|
||||||
|
m_CollisionDetection: 0
|
||||||
--- !u!1001 &2243028174331468478
|
--- !u!1001 &2243028174331468478
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -1129,7 +1171,7 @@ PrefabInstance:
|
||||||
- target: {fileID: 8347088070876745341, guid: a270ba76a3b8cc0458007401cf8f08bf,
|
- target: {fileID: 8347088070876745341, guid: a270ba76a3b8cc0458007401cf8f08bf,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_IsActive
|
propertyPath: m_IsActive
|
||||||
value: 0
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9161522608157501703, guid: a270ba76a3b8cc0458007401cf8f08bf,
|
- target: {fileID: 9161522608157501703, guid: a270ba76a3b8cc0458007401cf8f08bf,
|
||||||
type: 3}
|
type: 3}
|
||||||
|
|
|
@ -20,6 +20,7 @@ public class AiManager : MonoBehaviour
|
||||||
Gizmos.DrawWireSphere(player.position, cullingDistance);
|
Gizmos.DrawWireSphere(player.position, cullingDistance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ReSharper disable Unity.PerformanceAnalysis
|
||||||
private IEnumerator Manager()
|
private IEnumerator Manager()
|
||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
|
|
Reference in a new issue