Exported door model, added CollisionManager#on_ground?(entity), made gravity work in PhyisicsManager if Entity has physics enabled, updated test map

This commit is contained in:
2019-09-25 18:17:18 -05:00
parent 954c6899be
commit ecee086590
10 changed files with 247 additions and 47 deletions

View File

@@ -0,0 +1,13 @@
# Blender MTL File: 'door.blend'
# Material Count: 1
newmtl Material
Ns 323.999994
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.0 0.0 0.0
Ni 1.450000
d 1.000000
illum 2
map_Kd /home/cyberarm/Code/i-mic-fps/assets/base/door/textures/door.png

View File

@@ -0,0 +1,55 @@
# Blender v2.80 (sub 75) OBJ File: 'door.blend'
# www.blender.org
mtllib door.mtl
o Cube
v 1.250000 2.400000 -0.125000
v 1.250000 0.000000 -0.125000
v 1.250000 2.400000 0.125000
v 1.250000 0.000000 0.125000
v 0.000000 0.000000 -0.125000
v 0.000000 2.400000 0.125000
v 0.000000 0.000000 0.125000
v 0.000000 2.400000 -0.125000
vt 0.923077 0.000000
vt 1.000000 0.500000
vt 0.923077 0.500000
vt 0.923077 0.960000
vt 0.846154 0.000000
vt 0.000000 0.959961
vt 0.384766 -0.000000
vt 0.000000 0.000000
vt 0.384615 0.960000
vt 0.000000 0.000000
vt 0.384615 0.000000
vt 1.000000 1.000000
vt 0.923077 0.500000
vt 1.000000 0.500000
vt 0.769231 0.960000
vt 0.846154 0.000000
vt 0.846154 0.960000
vt 1.000000 0.000000
vt 0.846154 0.960000
vt 0.384766 0.959961
vt 0.000000 0.960000
vt 0.923077 1.000000
vt 0.769231 0.000000
vn 0.0000 -1.0000 0.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 0.0000 -1.0000
vn 0.0000 0.0000 1.0000
vn 0.0000 1.0000 0.0000
vn -1.0000 0.0000 0.0000
usemtl Material
s off
f 2/1/1 7/2/1 5/3/1
f 1/4/2 4/5/2 2/1/2
f 8/6/3 2/7/3 5/8/3
f 3/9/4 7/10/4 4/11/4
f 8/12/5 3/13/5 1/14/5
f 7/15/6 8/16/6 5/17/6
f 2/1/1 4/18/1 7/2/1
f 1/4/2 3/19/2 4/5/2
f 8/6/3 1/20/3 2/7/3
f 3/9/4 6/21/4 7/10/4
f 8/12/5 6/22/5 3/13/5
f 7/15/6 6/23/6 8/16/6