use mesh node for sport bench

This commit is contained in:
Vanessa Ezekowitz
2015-04-15 03:01:48 -04:00
parent d6a86d736a
commit 800fff3a02
6 changed files with 715 additions and 26 deletions

View File

@ -498,37 +498,23 @@ homedecor.register("trophy", {
collision_box = tr_cbox,
})
local sb_cbox = {
type = "fixed",
fixed = { -0.4, -0.5, -0.5, 0.4, 0.375, 0.5 }
}
homedecor.register("sportbench", {
description = "Sport bench",
mesh = "homedecor_sport_bench.obj",
tiles = {
"homedecor_sportbench_top.png",
"wool_black.png",
"homedecor_sportbench_left.png^[transformFX",
"homedecor_sportbench_left.png",
"homedecor_sportbench_bottom.png",
"homedecor_sportbench_front.png"
"homedecor_tile_wrought_iron2.png",
"homedecor_bright_metal.png",
"forniture_black_metal.png",
"wool_black.png"
},
groups = { snappy=3 },
node_box = {
type = "fixed",
fixed = {
{-0.1875, -0.3125, -0.5, 0.1875, -0.25, 0.5}, -- NodeBox1
{-0.1875, -0.5, -0.5, -0.125, -0.3125, -0.4375}, -- NodeBox2
{0.125, -0.5, -0.5, 0.1875, -0.3125, -0.4375}, -- NodeBox3
{0.1875, -0.5, 0.375, 0.25, 0.375, 0.4375}, -- NodeBox4
{-0.25, -0.5, 0.375, -0.1875, 0.375, 0.4375}, -- NodeBox5
{-0.5, 0.125, 0.36, 0.5, 0.14, 0.375}, -- NodeBox6
{0.3125, 0, 0.225, 0.35, 0.285, 0.5}, -- NodeBox7
{-0.35, 0, 0.225, -0.3125, 0.285, 0.5}, -- NodeBox8
{-0.1875, -0.375, 0.375, 0.1875, -0.3125, 0.4375}, -- NodeBox9
{-0.23, 0.11, 0.33, -0.2075, 0.125, 0.375}, -- NodeBox10
{0.2075, 0.11, 0.33, 0.23, 0.125, 0.375}, -- NodeBox11
}
},
selection_box = {
type = "fixed",
fixed = { -0.4, -0.5, -0.5, 0.4, 0.375, 0.5 }
}
selection_box = sb_cbox,
collision_box = sb_cbox,
})
local skate_cbox = {