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:
Crizomb 2025-01-09 01:03:04 +01:00
parent 9e582b1a79
commit 0c0b9287ce
8 changed files with 9344 additions and 121 deletions

View 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

View file

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