Skip to content

Commit 082e866

Browse files
committed
Update player_api model registration
Ensures correct eye position and collision box. Values taken from the player_api 'character.b3d' model.
1 parent c224a73 commit 082e866

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

3d_armor/init.lua

+7-2
Original file line numberDiff line numberDiff line change
@@ -296,16 +296,21 @@ player_api.register_model("3d_armor_character.b3d", {
296296
},
297297
animations = {
298298
stand = {x=0, y=79},
299-
lay = {x=162, y=166},
299+
lay = {x=162, y=166, eye_height = 0.3, override_local = true,
300+
collisionbox = {-0.6, 0.0, -0.6, 0.6, 0.3, 0.6}},
300301
walk = {x=168, y=187},
301302
mine = {x=189, y=198},
302303
walk_mine = {x=200, y=219},
303-
sit = {x=81, y=160},
304+
sit = {x=81, y=160, eye_height = 0.8, override_local = true,
305+
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.0, 0.3}},
304306
-- compatibility w/ the emote mod
305307
wave = {x = 192, y = 196, override_local = true},
306308
point = {x = 196, y = 196, override_local = true},
307309
freeze = {x = 205, y = 205, override_local = true},
308310
},
311+
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
312+
-- stepheight: use default
313+
eye_height = 1.47,
309314
})
310315

311316
minetest.register_on_player_receive_fields(function(player, formname, fields)

0 commit comments

Comments
 (0)