Skip to content

Commit 4a0ea74

Browse files
authored
feat: improve character controller (#21)
* wip: use shapecaster component instead of spatialquery for ground check * feat: make character controller usable for the enemy too
1 parent 2034b6e commit 4a0ea74

File tree

11 files changed

+227
-204
lines changed

11 files changed

+227
-204
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:51894f369013b8f936ec4a5d407e9674f70b33ab6881b3f438c7bae165ae3bc4
3-
size 109799149
2+
oid sha256:4649f7c5d3f610e40af46e86d5afab896fb84844bb0078831446ea5df701a664
3+
size 109791897
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:794adc3aa328ac508bba89c4a02a95732c83528f67243eb6a8474c67899da195
3-
size 109793554
2+
oid sha256:51894f369013b8f936ec4a5d407e9674f70b33ab6881b3f438c7bae165ae3bc4
3+
size 109799149

assets/maps/medium_plastic/scene.gltf

Lines changed: 27 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"nodes":[
1111
528,
1212
529,
13-
530,
14-
531,
15-
532,
16-
533,
17-
534
13+
530
1814
]
1915
},
2016
{
2117
"name":"Small_Map",
2218
"nodes":[
19+
821,
20+
822,
21+
823,
22+
824,
2323
825,
2424
826,
2525
827,
@@ -35,11 +35,7 @@
3535
837,
3636
838,
3737
839,
38-
840,
39-
841,
40-
842,
41-
843,
42-
844
38+
840
4339
]
4440
}
4541
],
@@ -2935,26 +2931,6 @@
29352931
1.4299999475479126
29362932
]
29372933
},
2938-
{
2939-
"extras":{
2940-
"skein":[
2941-
{
2942-
"fun_shooter::enemy::spawn::EnemySpawnLocation":{}
2943-
}
2944-
]
2945-
},
2946-
"name":"Empty",
2947-
"scale":[
2948-
1.4299999475479126,
2949-
1.4299999475479126,
2950-
1.4299999475479126
2951-
],
2952-
"translation":[
2953-
-7.055305480957031,
2954-
0.7016563415527344,
2955-
7.515159606933594
2956-
]
2957-
},
29582934
{
29592935
"extras":{
29602936
"skein":[
@@ -2975,26 +2951,6 @@
29752951
20.508115768432617
29762952
]
29772953
},
2978-
{
2979-
"extras":{
2980-
"skein":[
2981-
{
2982-
"fun_shooter::enemy::spawn::EnemySpawnLocation":{}
2983-
}
2984-
]
2985-
},
2986-
"name":"Empty.002",
2987-
"scale":[
2988-
1.4299999475479126,
2989-
1.4299999475479126,
2990-
1.4299999475479126
2991-
],
2992-
"translation":[
2993-
4.780683517456055,
2994-
1.5932782888412476,
2995-
6.4729461669921875
2996-
]
2997-
},
29982954
{
29992955
"extras":{
30002956
"skein":[
@@ -3015,46 +2971,6 @@
30152971
-11.650971412658691
30162972
]
30172973
},
3018-
{
3019-
"extras":{
3020-
"skein":[
3021-
{
3022-
"fun_shooter::enemy::spawn::EnemySpawnLocation":{}
3023-
}
3024-
]
3025-
},
3026-
"name":"Empty.004",
3027-
"scale":[
3028-
1.4299999475479126,
3029-
1.4299999475479126,
3030-
1.4299999475479126
3031-
],
3032-
"translation":[
3033-
3.5724313259124756,
3034-
1.4190740585327148,
3035-
-13.245203018188477
3036-
]
3037-
},
3038-
{
3039-
"extras":{
3040-
"skein":[
3041-
{
3042-
"fun_shooter::enemy::spawn::EnemySpawnLocation":{}
3043-
}
3044-
]
3045-
},
3046-
"name":"Empty.005",
3047-
"scale":[
3048-
1.4299999475479126,
3049-
1.4299999475479126,
3050-
1.4299999475479126
3051-
],
3052-
"translation":[
3053-
-3.921736240386963,
3054-
0.7016563415527344,
3055-
7.515159606933594
3056-
]
3057-
},
30582974
{
30592975
"extras":{
30602976
"skein":[
@@ -4571,7 +4487,7 @@
45714487
},
45724488
{
45734489
"children":[
4574-
819
4490+
815
45754491
],
45764492
"name":"Map.001"
45774493
},
@@ -4615,6 +4531,10 @@
46154531
},
46164532
{
46174533
"children":[
4534+
531,
4535+
532,
4536+
533,
4537+
534,
46184538
535,
46194539
536,
46204540
537,
@@ -4895,15 +4815,11 @@
48954815
812,
48964816
813,
48974817
814,
4898-
815,
48994818
816,
49004819
817,
49014820
818,
4902-
820,
4903-
821,
4904-
822,
4905-
823,
4906-
824
4821+
819,
4822+
820
49074823
],
49084824
"extras":{
49094825
"skein":[]
@@ -5159,7 +5075,7 @@
51595075
{
51605076
"sampler":0,
51615077
"target":{
5162-
"node":802,
5078+
"node":798,
51635079
"path":"rotation"
51645080
}
51655081
}
@@ -5178,7 +5094,7 @@
51785094
{
51795095
"sampler":0,
51805096
"target":{
5181-
"node":803,
5097+
"node":799,
51825098
"path":"rotation"
51835099
}
51845100
}
@@ -5197,7 +5113,7 @@
51975113
{
51985114
"sampler":0,
51995115
"target":{
5200-
"node":804,
5116+
"node":800,
52015117
"path":"rotation"
52025118
}
52035119
}
@@ -5216,7 +5132,7 @@
52165132
{
52175133
"sampler":0,
52185134
"target":{
5219-
"node":805,
5135+
"node":801,
52205136
"path":"rotation"
52215137
}
52225138
}
@@ -5235,7 +5151,7 @@
52355151
{
52365152
"sampler":0,
52375153
"target":{
5238-
"node":806,
5154+
"node":802,
52395155
"path":"rotation"
52405156
}
52415157
}
@@ -5254,7 +5170,7 @@
52545170
{
52555171
"sampler":0,
52565172
"target":{
5257-
"node":807,
5173+
"node":803,
52585174
"path":"rotation"
52595175
}
52605176
}
@@ -5273,7 +5189,7 @@
52735189
{
52745190
"sampler":0,
52755191
"target":{
5276-
"node":808,
5192+
"node":804,
52775193
"path":"rotation"
52785194
}
52795195
}
@@ -5292,7 +5208,7 @@
52925208
{
52935209
"sampler":0,
52945210
"target":{
5295-
"node":809,
5211+
"node":805,
52965212
"path":"rotation"
52975213
}
52985214
}
@@ -5311,7 +5227,7 @@
53115227
{
53125228
"sampler":0,
53135229
"target":{
5314-
"node":810,
5230+
"node":806,
53155231
"path":"rotation"
53165232
}
53175233
}
@@ -5330,7 +5246,7 @@
53305246
{
53315247
"sampler":0,
53325248
"target":{
5333-
"node":811,
5249+
"node":807,
53345250
"path":"rotation"
53355251
}
53365252
}
@@ -5349,7 +5265,7 @@
53495265
{
53505266
"sampler":0,
53515267
"target":{
5352-
"node":812,
5268+
"node":808,
53535269
"path":"rotation"
53545270
}
53555271
}
@@ -5368,7 +5284,7 @@
53685284
{
53695285
"sampler":0,
53705286
"target":{
5371-
"node":813,
5287+
"node":809,
53725288
"path":"rotation"
53735289
}
53745290
}
@@ -5387,7 +5303,7 @@
53875303
{
53885304
"sampler":0,
53895305
"target":{
5390-
"node":814,
5306+
"node":810,
53915307
"path":"rotation"
53925308
}
53935309
}
@@ -5406,7 +5322,7 @@
54065322
{
54075323
"sampler":0,
54085324
"target":{
5409-
"node":815,
5325+
"node":811,
54105326
"path":"rotation"
54115327
}
54125328
}

0 commit comments

Comments
 (0)