bar = {x = 20, y = 39},
-- ...
},
+ collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.77, 0.3}, -- In nodes from centre of feet
}
textures = player_textures[name] or model.textures,
visual = "mesh",
visual_size = model.visual_size or {x=1, y=1},
+ collisionbox = model.collisionbox or {-0.3, 0.0, -0.3, 0.3, 1.77, 0.3},
})
player_api.set_animation(player, "stand")
else
player:set_properties({
textures = { "player.png", "player_back.png", },
visual = "upright_sprite",
+ collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.75, 0.3},
})
end
player_model[name] = model_name
walk_mine = { x=200, y=219, },
sit = { x= 81, y=160, },
},
+ collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.77, 0.3},
})
-- Update appearance when the player joins