Fix physics with navmesh agent
- desactivate navmesh temporarly when knockback (MovementHandler TakeImpulse) - Delete unit when HealthHandler Death called - Made 150 units fight (for performance test)
This commit is contained in:
parent
9e582b1a79
commit
0c0b9287ce
8 changed files with 9344 additions and 121 deletions
15
Assets/Materials/UnitPhysics.physicMaterial
Normal file
15
Assets/Materials/UnitPhysics.physicMaterial
Normal file
|
@ -0,0 +1,15 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!134 &13400000
|
||||
PhysicsMaterial:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: UnitPhysics
|
||||
serializedVersion: 2
|
||||
m_DynamicFriction: 0.6
|
||||
m_StaticFriction: 0.6
|
||||
m_Bounciness: 0
|
||||
m_FrictionCombine: 0
|
||||
m_BounceCombine: 0
|
8
Assets/Materials/UnitPhysics.physicMaterial.meta
Normal file
8
Assets/Materials/UnitPhysics.physicMaterial.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6d59c543e7995191cbee8fab25167b46
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 13400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue