Commit graph

1985 commits

Author SHA1 Message Date
in0finite
48fff1fd42 adapt EscapeState 2022-03-22 21:47:22 +01:00
in0finite
4c77a8fd36 ... 2022-03-22 21:46:31 +01:00
in0finite
2ae03ccf9b sample position before warping agent, to prevent Unity to spam with warnings 2022-03-22 19:50:01 +01:00
in0finite
a250cbd42e adapt ChaseState 2022-03-22 00:03:57 +01:00
in0finite
99b89715e5 ... 2022-03-21 23:28:12 +01:00
in0finite
4d0de7155c adapt WalkAroundState 2022-03-21 23:05:15 +01:00
in0finite
ae537b455f ... 2022-03-21 22:10:15 +01:00
in0finite
61af25fc72 ... 2022-03-21 22:08:39 +01:00
in0finite
52962e74cc ... 2022-03-21 20:45:04 +01:00
in0finite
eb0ee71ae6 when off nav mesh, if agent is in range of destination, don't move him 2022-03-21 00:10:36 +01:00
in0finite
565681cd75 when off nav mesh, update desired velocity every frame based on destination, if there is no sampled position 2022-03-20 23:52:10 +01:00
in0finite
3124685f47 use "stopping distance" from NavMeshAgent, don't try to manually stop him 2022-03-20 23:20:39 +01:00
in0finite
b8300b25ec handle case when Agent is disabled 2022-03-20 22:22:20 +01:00
in0finite
97f5dea402 reset path if position can not be sampled 2022-03-20 21:57:46 +01:00
in0finite
bc26a10ab5 handle cases when destination changes by significant amount, but it's not recognized by "delta position" method 2022-03-20 21:51:55 +01:00
in0finite
e35f238e55 handle situation when agent is off nav mesh - move him to sample position, or if it doesn't exist, to destination 2022-03-20 15:56:49 +01:00
in0finite
77cc164ea4 check stopping distance to calculated destination, not to assigned destination 2022-03-20 12:36:54 +01:00
in0finite
08bb988a55 fix issue when agent is not on nav mesh 2022-03-19 17:44:11 +01:00
in0finite
07e1a7fff6 add inspector for MovementAgent 2022-03-19 16:25:24 +01:00
in0finite
9b521a7e96 ... 2022-03-19 16:24:47 +01:00
in0finite
74514cb91e allow for editable/non-editable controls when drawing properties 2022-03-19 16:23:52 +01:00
in0finite
36544cb6bb ... 2022-03-14 20:09:22 +01:00
in0finite
ba765922b4 ... 2022-03-14 13:03:45 +01:00
in0finite
3561f0657a disable nav mesh agent while ped is in vehicle 2022-03-14 13:00:07 +01:00
in0finite
2fb543ef0a properly stopping if close enough to destination 2022-03-14 10:03:21 +01:00
in0finite
ef053b9c45 ... 2022-03-14 08:58:48 +01:00
in0finite
bae1f0694e increase navmesh PathfindingIterationsPerFrame to 1000 2022-03-14 08:40:32 +01:00
in0finite
feb0b6e74a use MovementAgent 2022-03-14 08:39:31 +01:00
in0finite
d097287aa1 log stats for calculating path in map window 2022-03-14 08:33:00 +01:00
in0finite
8b000557ce fix navmesh generation for interiors 2022-03-07 23:45:58 +01:00
in0finite
b1c9d38e3a use all MapObjects when exporting assets 2022-03-07 03:18:26 +01:00
in0finite
566a2bd6a3 delegate creation of navmesh build sources to MapObject classes 2022-03-07 01:41:52 +01:00
in0finite
4d157f8f0c add NavMeshAgent 2022-03-07 01:02:40 +01:00
in0finite
c9d4772da7 fix 2022-03-06 03:38:06 +01:00
in0finite
4de69f976d allow editing of navmesh build settings 2022-03-06 03:15:40 +01:00
in0finite
3e001ad856 fix 3-vertices faces for render mesh 2022-03-06 03:10:28 +01:00
in0finite
a7c1a6a61c ... 2022-03-06 03:09:03 +01:00
in0finite
10775e2409 3-vertices faces finally working 2022-03-05 19:58:21 +01:00
in0finite
ee96efc1c3 add support for 3 mesh vertices - still not working 2022-03-05 03:50:26 +01:00
in0finite
c99d4f6200 ... 2022-03-03 06:49:34 +01:00
in0finite
f08dcb7c3d use separate collision height for shallow water faces 2022-03-03 05:55:19 +01:00
in0finite
1af5202779 use NavMeshCollectGeometry.PhysicsColliders for water when generating navmesh 2022-03-03 05:48:02 +01:00
in0finite
b567230a0d use StringComparer.InvariantCultureIgnoreCase for dictionary 2022-03-03 05:45:03 +01:00
in0finite
40ce340044 ... 2022-02-28 02:09:19 +01:00
in0finite
652e8e892e add option to skip loading render meshes, which also skips loading of Clumps 2022-02-28 01:03:57 +01:00
in0finite
f4772d63f6 add ImportingMenuTools 2022-02-27 21:54:04 +01:00
in0finite
fe3e6ddb22 interior waters are offsetted to higher Y position 2022-02-27 20:15:44 +01:00
in0finite
a68e42e3f1 don't generate navmesh at runtime 2022-02-27 18:42:51 +01:00
in0finite
4ec73c8f8d add local ped menu tools 2022-02-27 18:42:23 +01:00
in0finite
291266cafa ... 2022-02-27 18:39:25 +01:00
in0finite
0cf357a993 fix finding center for box collider - this fixes 3-vertices faces 2022-02-27 18:38:32 +01:00
in0finite
0cbdfa8738 add water menu tools 2022-02-27 18:36:19 +01:00
in0finite
878e89a8a9 use WaterFaceInfo script 2022-02-27 18:34:29 +01:00
in0finite
492ae15444 fix visualization for water collision meshes 2022-02-27 18:32:00 +01:00
in0finite
18e5ec830a create visuals for collision objects 2022-02-27 01:03:22 +01:00
in0finite
706d2b6d9d generate box colliders for water mesh 2022-02-27 00:44:14 +01:00
in0finite
6185f7089f create collision parts for water 2022-02-22 04:38:01 +01:00
in0finite
30b9d56e36 add stats about loading thread and pathfinding manager 2022-02-22 00:53:01 +01:00
in0finite
831f52d76f display also navmesh path in map window 2022-02-21 06:45:10 +01:00
in0finite
396b0fd3a6 when generating navmesh in Editor tool, add navmesh data before updating it 2022-02-21 04:33:04 +01:00
in0finite
2f6ee95a60 generate navmesh at runtime 2022-02-21 04:31:58 +01:00
in0finite
fc1cefb415 fix 2022-02-20 22:59:56 +01:00
in0finite
6976e8c8a0 ... 2022-02-20 20:08:37 +01:00
in0finite
682c181dec throw exception if failed to remove/add 2022-02-20 20:03:36 +01:00
in0finite
37469d508c re-use hashset 2022-02-20 19:13:10 +01:00
in0finite
be9515ce36 optimization for getting Min element from SortedSet 2022-02-20 19:04:36 +01:00
in0finite
f325ff298b fix calculation of link weight 2022-02-20 05:20:54 +01:00
in0finite
30f69225ea ... 2022-02-20 02:28:48 +01:00
in0finite
813dccfe0c ... 2022-02-19 22:48:27 +01:00
in0finite
4e3fc521fb 2nd attempt at pathfinding 2022-02-19 22:26:53 +01:00
in0finite
3ace66420e ... 2022-02-19 03:26:48 +01:00
in0finite
30f5c7a4d4 calculate path to waypoint in map window 2022-02-19 03:26:33 +01:00
in0finite
855dd77dd4 first attempt at pathfinding 2022-02-19 03:25:43 +01:00
in0finite
d8e6191c45 extract BackgroundJobRunner class 2022-02-15 22:26:00 +01:00
in0finite
e66ad5065a fix MarkActiveSceneAsDirty() 2022-02-12 20:09:26 +01:00
in0finite
07208ddceb run coroutines also while Editor is paused 2022-02-12 19:51:37 +01:00
in0finite
21e97717d0 re-save NetPlayer.prefab 2022-01-30 23:17:00 +01:00
in0finite
b8bb8ec9ac re-save Vehicle.prefab 2022-01-30 23:16:03 +01:00
in0finite
d985b495d0 re-save NetworkManager.prefab 2022-01-30 23:15:06 +01:00
in0finite
b51eca0082 re-save UI.prefab 2022-01-30 23:13:47 +01:00
in0finite
df981fdfca re-save Ped.prefab 2022-01-30 22:44:35 +01:00
in0finite
6b0e124539 re-save Demo scene 2022-01-30 22:40:37 +01:00
in0finite
1c9782c556 re-save Main scene 2022-01-30 22:35:42 +01:00
in0finite
f25c647b27 re-save scene 2022-01-30 22:33:34 +01:00
in0finite
41c34f1b9c delete unused prefab 2022-01-30 21:29:15 +01:00
in0finite
e1d35d1bc3 re-save prefab 2022-01-30 21:24:14 +01:00
in0finite
5874357ba9 open project with new version of Unity 2022-01-30 21:02:34 +01:00
in0finite
fe61e9898f rename 2022-01-30 01:06:45 +01:00
in0finite
fa933411d0 fix NRE 2022-01-30 01:04:56 +01:00
in0finite
1ee1e01414 update submodule 2022-01-30 00:21:05 +01:00
in0finite
7d6e6ca84c profile loading steps 2022-01-30 00:18:52 +01:00
in0finite
baedb28277 add some logs 2022-01-29 23:49:49 +01:00
in0finite
a60d9d1b51 performance improvement for creating static geometry - don't allocate string if not needed 2022-01-29 23:48:46 +01:00
in0finite
b40ff21930 dont try to destroy water mesh if it is asset 2022-01-29 22:41:19 +01:00
in0finite
64130195e0 fix 2022-01-29 22:13:36 +01:00
in0finite
4d30a3d5d4 display loading status when error happens 2022-01-29 21:47:02 +01:00
in0finite
a95f8fb59d adjust window size 2022-01-29 06:58:01 +01:00
in0finite
6ecc9c11c0 fix saving 2022-01-29 06:57:21 +01:00
in0finite
c1cf249e8a ... 2022-01-29 05:54:46 +01:00
in0finite
0ebaef839a add some world tools 2022-01-29 05:54:20 +01:00
in0finite
0dc2a4c42d fix navmesh generation 2022-01-29 05:53:51 +01:00
in0finite
7ebc1ea9bf add button to remove all navmeshes 2022-01-29 05:50:18 +01:00
in0finite
892fb395ca add Edit button 2022-01-29 05:49:55 +01:00
in0finite
356dd0fb4b properly collect navmesh sources 2022-01-29 04:56:01 +01:00
in0finite
e31d937b4a performance optimization for edit-mode: don't deactivate world objects during initialization 2022-01-29 03:24:26 +01:00
in0finite
eb091f11d0 export water also 2022-01-29 02:58:33 +01:00
in0finite
13523dd726 use ETAMeasurer 2022-01-29 02:08:10 +01:00
in0finite
836f5f228f disable GI 2022-01-29 01:53:01 +01:00
in0finite
0e5399a896 ... 2022-01-29 01:49:01 +01:00
in0finite
3813d5b0f4 fix 2022-01-28 00:37:53 +01:00
in0finite
2f30e2b5b8 measure ETA 2022-01-28 00:37:33 +01:00
in0finite
ad21e737ff ... 2022-01-28 00:34:41 +01:00
in0finite
b36ef41e05 improve nav mesh generator 2022-01-27 01:11:47 +01:00
in0finite
5761dae758 make water generation idempotent 2022-01-27 00:48:18 +01:00
in0finite
ca5c801cec assign water prefab 2022-01-26 23:38:03 +01:00
in0finite
a39a584683 fix day-time manager 2022-01-26 21:25:33 +01:00
in0finite
14ba0a78fb fix 2022-01-26 21:24:32 +01:00
in0finite
78ecce2e90 fixes 2022-01-26 21:23:56 +01:00
in0finite
c791aec4b8 draw in-game windows in edit mode 2022-01-26 20:36:56 +01:00
in0finite
941ec06be1 fix 2022-01-26 20:25:43 +01:00
in0finite
d2e36d470b ... 2022-01-26 20:24:52 +01:00
in0finite
37930ac861 adapt to singleton 2022-01-26 20:21:50 +01:00
in0finite
a6b8af5cb9 make sure config is loaded 2022-01-26 17:45:38 +01:00
in0finite
ab0c925b33 more safeguards 2022-01-25 00:24:38 +01:00
in0finite
1d7d394366 tweaking 2022-01-24 23:28:49 +01:00
in0finite
569fc98683 ... 2022-01-24 23:16:15 +01:00
in0finite
1f4067479e ... 2022-01-24 23:13:04 +01:00
in0finite
d064ed6d17 ... 2022-01-24 22:52:59 +01:00
in0finite
75018ffc4a prevent running in play mode 2022-01-24 22:49:19 +01:00
in0finite
e97e308a0c ... 2022-01-24 22:48:45 +01:00
in0finite
7c061d3888 disable changing export folder 2022-01-24 22:35:12 +01:00
in0finite
91bb5b6633 add scroll view 2022-01-24 22:33:16 +01:00
in0finite
3e9bda3547 ... 2022-01-24 22:28:38 +01:00
in0finite
46db58b5f0 unshow, then show map objects 2022-01-24 22:27:41 +01:00
in0finite
99b52ee50b huge performance optimization by grouping asset creation with AssetDatabase.StartAssetEditing(), and doing all read operations outside of it 2022-01-24 22:26:36 +01:00
in0finite
4e98f2a905 fix pausable progress bar 2022-01-24 19:00:33 +01:00
in0finite
f2e1d920bd measure ETA 2022-01-24 18:49:02 +01:00
in0finite
d21ec31eff add pausable progress bars 2022-01-24 18:24:58 +01:00
in0finite
205820733b add multiple iterations when waiting for jobs to finish 2022-01-24 18:08:08 +01:00
in0finite
0b3fa3a436 unpack prefab 2022-01-24 18:07:22 +01:00
in0finite
9b0757679f reuse enexes 2022-01-24 18:07:00 +01:00
in0finite
3217beb0e9 check if background thread is running 2022-01-24 15:44:27 +01:00
in0finite
edaee31998 delete then create enexes 2022-01-24 14:22:41 +01:00
in0finite
8e08c8b1c8 reuse existing static geometry 2022-01-24 14:21:17 +01:00
in0finite
25a0093c8f mark scene as dirty 2022-01-24 14:17:34 +01:00
in0finite
a591262066 allow to export from existing Cell object 2022-01-24 13:03:08 +01:00
in0finite
37e73f5745 fix checking if there are pending jobs 2022-01-24 12:12:40 +01:00
in0finite
31a1a7a0a5 more safeguards 2022-01-24 02:40:13 +01:00
in0finite
32c3504a27 ... 2022-01-24 02:32:47 +01:00
in0finite
86c1165777 ... 2022-01-24 01:52:57 +01:00
in0finite
5ec8ad8890 rename method 2022-01-24 01:51:48 +01:00
in0finite
4d6295aaf0 performance optimization with StartAssetEditing/StopAssetEditing 2022-01-23 23:23:17 +01:00
in0finite
9712313cf4 load assets at the same time while exporting them 2022-01-23 22:46:07 +01:00
in0finite
20758ae011 rename 2022-01-23 21:48:20 +01:00
in0finite
b2e6ed7467 performance optimizations 2022-01-23 21:45:40 +01:00
in0finite
5cea14c46e dont fade in edit mode 2022-01-23 21:28:01 +01:00
in0finite
a2dfe4fd8c disable automatic light baking 2022-01-23 21:27:23 +01:00
in0finite
7623eb6ff8 set scene as dirty 2022-01-23 21:27:13 +01:00
in0finite
98d93161b0 loading of assets works 2022-01-23 07:19:15 +01:00
in0finite
a3cddc0209 start thread also in edit mode 2022-01-23 07:04:08 +01:00
in0finite
86ed0369a7 jobs can be updated by anyone 2022-01-23 06:15:01 +01:00
in0finite
75ac2ee166 remove world steps if world does not exist 2022-01-23 06:00:12 +01:00
in0finite
6b472e1374 ... 2022-01-23 05:53:28 +01:00
in0finite
e4b788b6ca fix deleting audio source when loading finishes 2022-01-23 05:50:32 +01:00
in0finite
896729818b remember completed steps and don't repeat them 2022-01-23 05:49:55 +01:00
in0finite
1619bb6931 add new type of asset export: from game files 2022-01-23 05:02:03 +01:00
in0finite
bdd62c1ebd make LoadingThread a singleton 2022-01-23 05:00:31 +01:00
in0finite
857ab69c21 CreateStaticGeometry() and InitStaticGeometry() will only be done once 2022-01-23 04:59:52 +01:00
in0finite
d9eb4c8606 make DayTimeManager a singleton 2022-01-23 03:55:53 +01:00
in0finite
e3b2f1d519 add more error checking for singletons 2022-01-23 03:50:07 +01:00
in0finite
5255722db9 make Cell a Singleton 2022-01-22 21:48:43 +01:00
in0finite
e3c3e9a21a ... 2022-01-22 20:23:44 +01:00
in0finite
d15a96529e fix for TouchInput 2022-01-22 02:10:43 +01:00
in0finite
bd21838255 fix for CustomNetworkManager 2022-01-22 02:07:08 +01:00
in0finite
3250e04c28 ... 2022-01-22 02:04:13 +01:00
in0finite
b94912a11b add LoadProcessStarter 2022-01-22 02:03:14 +01:00
in0finite
512f49263a add CouroutineManager to prefab 2022-01-22 02:00:36 +01:00
in0finite
f0959761e8 add more error-proof checking for startup singletons 2022-01-22 01:24:52 +01:00
in0finite
4556e1eed6 make Loader a StartupSingleton 2022-01-22 01:09:42 +01:00
in0finite
6d4586d7ea destroy in edit mode 2022-01-22 01:00:56 +01:00
in0finite
b7ff6d8d91 ... 2022-01-22 00:33:21 +01:00
in0finite
bcc8d3d7e2 ... 2022-01-22 00:31:10 +01:00
in0finite
2be483667a display dialog when loading finishes 2022-01-22 00:25:31 +01:00
in0finite
3a9399b616 make loading process much more error-proof 2022-01-22 00:25:05 +01:00
in0finite
d705d9ca12 make MiniMap a StartupSingleton 2022-01-21 02:27:21 +01:00
in0finite
edbb2e8635 add loading steps when loading begins 2022-01-21 02:11:42 +01:00
in0finite
473ae83c8d ... 2022-01-21 02:01:49 +01:00
in0finite
51eb669178 clear progress bar when loading finishes 2022-01-21 02:01:35 +01:00
in0finite
e6e8420f44 ... 2022-01-21 01:36:27 +01:00
in0finite
ab96f3c8d5 Loader inherits SingletonComponent 2022-01-21 01:35:36 +01:00
in0finite
c19b485a42 make StartupSingleton work in edit mode 2022-01-21 01:14:03 +01:00
in0finite
fe9f17f1ec make AudioManager a StartupSingleton 2022-01-21 00:31:25 +01:00
in0finite
9e890e9f25 add EditorLoader which can start loading game data and display loading progress 2022-01-21 00:19:09 +01:00
in0finite
6a447b6962 adapt to CoroutineManager 2022-01-21 00:17:06 +01:00
in0finite
f2c330f6a5 impl CoroutineManager 2022-01-21 00:14:22 +01:00
in0finite
4f16c2ef76 ... 2022-01-17 00:30:09 +01:00
in0finite
44a4ff8c17 ... 2022-01-17 00:29:38 +01:00
in0finite
5e82124a2f extract function 2022-01-17 00:21:34 +01:00
in0finite
4c03c5f33f fix creating folders 2022-01-16 22:54:57 +01:00
in0finite
8d936b3499 add additional toggle to control exporting 2022-01-16 22:05:12 +01:00