First commit
This commit is contained in:
parent
136a7bd832
commit
b4ffc285e7
7
126r.lua
7
126r.lua
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_126r", {
|
||||
description = "Car: 126r",
|
||||
vehicle_mash:register_car("vehicle_mash:car_126r", {
|
||||
description = "126r car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "car_126r_inventory.png",
|
||||
wield_image = "car_126r_wield.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
146
api.lua
146
api.lua
@ -1,24 +1,35 @@
|
||||
cars = {}
|
||||
vehicle_mash = {}
|
||||
|
||||
local function get_sign(i)
|
||||
if i == 0 then
|
||||
return 0
|
||||
else
|
||||
return i/math.abs(i)
|
||||
return i / math.abs(i)
|
||||
end
|
||||
end
|
||||
|
||||
local function get_velocity(v, yaw, y, r, f)
|
||||
local x = (math.cos(yaw) + math.abs(r)*math.cos(yaw+r*math.rad(105))*f)*v
|
||||
local z = (math.sin(yaw) + math.abs(r)*math.sin(yaw+r*math.rad(105))*f)*v
|
||||
local function get_velocity_a(v, yaw, y)
|
||||
local x = math.cos(yaw) * v
|
||||
local z = math.sin(yaw) * v
|
||||
return {x=x, y=y, z=z}
|
||||
end
|
||||
|
||||
local function get_velocity_b(v, yaw, y)
|
||||
local x = -math.sin(yaw) * v
|
||||
local z = math.cos(yaw) * v
|
||||
return {x=x, y=y, z=z}
|
||||
end
|
||||
|
||||
local function get_v(v)
|
||||
return math.sqrt(v.x^2+v.z^2)
|
||||
return math.sqrt(v.x^2 + v.z^2)
|
||||
end
|
||||
|
||||
function cars:register_car(name, def)
|
||||
local function is_water(pos)
|
||||
local nn = minetest.get_node(pos).name
|
||||
return minetest.get_item_group(nn, "water") ~= 0
|
||||
end
|
||||
|
||||
function vehicle_mash:register_car(name, def)
|
||||
minetest.register_entity(name, {
|
||||
textures = def.textures,
|
||||
name = name,
|
||||
@ -30,14 +41,13 @@ function cars:register_car(name, def)
|
||||
stepheight = def.stepheight,
|
||||
driver = nil,
|
||||
v = 0,
|
||||
timer = 0,
|
||||
v2 = 0,
|
||||
mouselook = 1,
|
||||
max_spd_f = def.max_speed_forward,
|
||||
max_spd_r = def.max_speed_reverse,
|
||||
accel = def.accel,
|
||||
braking = def.braking,
|
||||
turn_spd = def.turn_speed,
|
||||
f = 0,
|
||||
on_rightclick = function(self, clicker)
|
||||
if not clicker or not clicker:is_player() then
|
||||
return
|
||||
@ -55,7 +65,11 @@ function cars:register_car(name, def)
|
||||
minetest.after(0.2, function()
|
||||
default.player_set_animation(clicker, "sit" , 30)
|
||||
end)
|
||||
self.object:setyaw(clicker:get_look_yaw()) -- - math.pi / 2
|
||||
if def.is_boat then
|
||||
self.object:setyaw(clicker:get_look_yaw() - math.pi/2)
|
||||
else
|
||||
self.object:setyaw(clicker:get_look_yaw())
|
||||
end
|
||||
end
|
||||
end,
|
||||
on_activate = function(self, staticdata, dtime_s)
|
||||
@ -63,12 +77,12 @@ function cars:register_car(name, def)
|
||||
if staticdata then
|
||||
self.v = tonumber(staticdata)
|
||||
end
|
||||
self.v2 = self.v
|
||||
end,
|
||||
get_staticdata = function(self)
|
||||
return tostring(self.v)
|
||||
end,
|
||||
on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, direction)
|
||||
|
||||
if not puncher or not puncher:is_player() or self.removed then
|
||||
return
|
||||
end
|
||||
@ -89,13 +103,8 @@ function cars:register_car(name, def)
|
||||
end
|
||||
end,
|
||||
on_step = function(self, dtime)
|
||||
-- Acelerating, braking, rotating and skidding
|
||||
self.v = get_v(self.object:getvelocity())*get_sign(self.v)
|
||||
self.timer = self.timer + dtime
|
||||
if self.timer > 1 then
|
||||
self.timer = 0
|
||||
end
|
||||
local r = 0
|
||||
-- Acelerating, braking, and rotating
|
||||
self.v = get_v(self.object:getvelocity()) * get_sign(self.v)
|
||||
if self.driver then
|
||||
local ctrl = self.driver:get_player_control()
|
||||
if ctrl.up then
|
||||
@ -114,28 +123,21 @@ function cars:register_car(name, def)
|
||||
end
|
||||
if ctrl.left then
|
||||
self.object:setyaw(self.object:getyaw()+get_sign(self.v)*math.rad(1+dtime)*self.turn_spd)
|
||||
r = -1
|
||||
self.f = self.f+0.01
|
||||
end
|
||||
if ctrl.right then
|
||||
self.object:setyaw(self.object:getyaw()-get_sign(self.v)*math.rad(1+dtime)*self.turn_spd)
|
||||
r = 1
|
||||
self.f = self.f+0.01
|
||||
end
|
||||
if not (ctrl.up or ctrl.down) then
|
||||
self.f = self.f-0.02
|
||||
end
|
||||
if (ctrl.jump and self.timer == 0) then
|
||||
if ctrl.jump then
|
||||
self.mouselook = -self.mouselook
|
||||
end
|
||||
if self.mouselook == -1 then
|
||||
self.driver:set_look_yaw(self.object:getyaw()-math.pi/2)
|
||||
end
|
||||
end
|
||||
if self.f == nil or self.f < 0 then
|
||||
self.f = 0
|
||||
elseif self.f > 0.5 then
|
||||
self.f = 0.5
|
||||
local velo = self.object:getvelocity()
|
||||
if self.v == 0 and velo.x == 0 and velo.y == 0 and velo.z == 0 then
|
||||
self.object:setpos(self.object:getpos())
|
||||
return
|
||||
end
|
||||
-- Stop damn car!
|
||||
local s = get_sign(self.v)
|
||||
@ -151,13 +153,73 @@ function cars:register_car(name, def)
|
||||
max_spd = self.max_spd_f
|
||||
end
|
||||
if math.abs(self.v) > max_spd then
|
||||
self.v = self.v-get_sign(self.v)
|
||||
self.v = self.v - get_sign(self.v)
|
||||
end
|
||||
-- Set position, velocity and acceleration
|
||||
local p = self.object:getpos()
|
||||
self.object:setpos({x=p.x, y=p.y, z=p.z})
|
||||
self.object:setvelocity(get_velocity(self.v, self.object:getyaw(), self.object:getvelocity().y, r, self.f))
|
||||
self.object:setacceleration({x=0, y=-9.81, z=0})
|
||||
local new_velo = {x = 0, y = 0, z = 0}
|
||||
local new_acce = {x = 0, y = 0, z = 0}
|
||||
if def.is_boat then
|
||||
p.y = p.y - 0.5
|
||||
if not is_water(p) then
|
||||
local nodedef = minetest.registered_nodes[minetest.get_node(p).name]
|
||||
if (not nodedef) or nodedef.walkable then
|
||||
self.v = 0
|
||||
new_acce = {x = 0, y = 1, z = 0}
|
||||
else
|
||||
new_acce = {x = 0, y = -9.8, z = 0}
|
||||
end
|
||||
new_velo = get_velocity_b(self.v, self.object:getyaw(), self.object:getvelocity().y)
|
||||
self.object:setpos(self.object:getpos())
|
||||
else
|
||||
p.y = p.y + 1
|
||||
if is_water(p) then
|
||||
local y = self.object:getvelocity().y
|
||||
if y >= 4.5 then
|
||||
y = 4.5
|
||||
elseif y < 0 then
|
||||
new_acce = {x = 0, y = 20, z = 0}
|
||||
else
|
||||
new_acce = {x = 0, y = 5, z = 0}
|
||||
end
|
||||
new_velo = get_velocity_b(self.v, self.object:getyaw(), y)
|
||||
self.object:setpos(self.object:getpos())
|
||||
else
|
||||
new_acce = {x = 0, y = 0, z = 0}
|
||||
if math.abs(self.object:getvelocity().y) < 1 then
|
||||
local pos = self.object:getpos()
|
||||
pos.y = math.floor(pos.y) + 0.5
|
||||
self.object:setpos(pos)
|
||||
new_velo = get_velocity_b(self.v, self.object:getyaw(), 0)
|
||||
else
|
||||
new_velo = get_velocity_b(self.v, self.object:getyaw(), self.object:getvelocity().y)
|
||||
self.object:setpos(self.object:getpos())
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
else
|
||||
self.object:setpos({x=p.x, y=p.y, z=p.z})
|
||||
new_velo = get_velocity_a(self.v, self.object:getyaw(), self.object:getvelocity().y)
|
||||
new_acce = {x=0, y=-9.81, z=0}
|
||||
end
|
||||
self.object:setvelocity(new_velo)
|
||||
self.object:setacceleration(new_acce)
|
||||
if def.is_boat then
|
||||
-- if boat comes to sudden stop then it has crashed, destroy boat and drop 3x wood
|
||||
if self.v2 - self.v >= 3 then
|
||||
if self.driver then
|
||||
local name = self.driver:get_player_name()
|
||||
self.driver:set_detach()
|
||||
default.player_attached[name] = false
|
||||
default.player_set_animation(self.driver, "stand" , 30)
|
||||
end
|
||||
local pos = self.object:getpos()
|
||||
self.object:remove()
|
||||
minetest.add_item(pos, def.drop_on_destroy)
|
||||
end
|
||||
self.v2 = self.v
|
||||
end
|
||||
end,
|
||||
})
|
||||
minetest.register_craftitem(name, {
|
||||
@ -165,14 +227,26 @@ function cars:register_car(name, def)
|
||||
inventory_image = def.inventory_image,
|
||||
wield_image = def.wield_image,
|
||||
wield_scale = def.wield_scale,
|
||||
liquids_pointable = def.is_boat,
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
minetest.env:add_entity(pointed_thing.above, name)
|
||||
if liquids_pointable then
|
||||
if not is_water(pointed_thing.under) then
|
||||
return
|
||||
end
|
||||
pointed_thing.under.y = pointed_thing.under.y + 0.5
|
||||
minetest.add_entity(pointed_thing.under, name)
|
||||
else
|
||||
minetest.env:add_entity(pointed_thing.above, name)
|
||||
end
|
||||
itemstack:take_item()
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
-- minetest.register_craft({
|
||||
-- output = name,
|
||||
-- recipe = def.recipe,
|
||||
-- })
|
||||
end
|
||||
|
@ -1,6 +1,9 @@
|
||||
cars:register_car("cars:car_black", {
|
||||
description = "Car: black",
|
||||
vehicle_mash:register_car("vehicle_mash:car_black", {
|
||||
description = "Black car",
|
||||
inventory_image = "inv_car_black.png",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
wield_image = "inv_car_black.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
visual = "mesh",
|
||||
|
7
blue.lua
7
blue.lua
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_blue", {
|
||||
description = "Car: blue",
|
||||
vehicle_mash:register_car("vehicle_mash:car_blue", {
|
||||
description = "Blue car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_blue.png",
|
||||
wield_image = "inv_car_blue.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
19
boat.lua
Normal file
19
boat.lua
Normal file
@ -0,0 +1,19 @@
|
||||
vehicle_mash:register_car("vehicle_mash:boat", {
|
||||
description = "Boat",
|
||||
is_boat = true,
|
||||
drop_on_destroy = "default:wood 3",
|
||||
inventory_image = "boat_inventory.png",
|
||||
wield_image = "boat_wield.png",
|
||||
wield_scale = {x=2, y=2, z=1},
|
||||
visual = "mesh",
|
||||
mesh = "boat.x",
|
||||
visual_size = {x=1, y=1},
|
||||
textures = {"default_wood.png"},
|
||||
stepheight = 0, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
|
||||
max_speed_forward = 10,
|
||||
max_speed_reverse = 5,
|
||||
accel = 1,
|
||||
braking = 1,
|
||||
turn_speed = 2,
|
||||
collisionbox = {-0.5, -0.4, -0.5, 0.5, 0.3, 0.5},
|
||||
})
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_brown", {
|
||||
description = "Car: brown",
|
||||
vehicle_mash:register_car("vehicle_mash:car_brown", {
|
||||
description = "Brown car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_brown.png",
|
||||
wield_image = "inv_car_brown.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
7
cyan.lua
7
cyan.lua
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_cyan", {
|
||||
description = "Car: cyan",
|
||||
vehicle_mash:register_car("vehicle_mash:car_cyan", {
|
||||
description = "Cyan car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_cyan.png",
|
||||
wield_image = "inv_car_cyan.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_dark_green", {
|
||||
description = "Car: dark_green",
|
||||
vehicle_mash:register_car("vehicle_mash:car_dark_green", {
|
||||
description = "Dark green car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_dark_green.png",
|
||||
wield_image = "inv_car_dark_green.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_dark_grey", {
|
||||
description = "Car: dark_grey",
|
||||
vehicle_mash:register_car("vehicle_mash:car_dark_grey", {
|
||||
description = "Dark grey car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_dark_grey.png",
|
||||
wield_image = "inv_car_dark_grey.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
7
f1.lua
7
f1.lua
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_f1", {
|
||||
description = "Car: f1",
|
||||
vehicle_mash:register_car("vehicle_mash:car_f1", {
|
||||
description = "F1 car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "car_f1_inventory.png",
|
||||
wield_image = "car_f1_wield.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_green", {
|
||||
description = "Car: green",
|
||||
vehicle_mash:register_car("vehicle_mash:car_green", {
|
||||
description = "Green car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_green.png",
|
||||
wield_image = "inv_car_green.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
7
grey.lua
7
grey.lua
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_grey", {
|
||||
description = "Car: grey",
|
||||
vehicle_mash:register_car("vehicle_mash:car_grey", {
|
||||
description = "Grey car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_grey.png",
|
||||
wield_image = "inv_car_grey.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_hot_rod", {
|
||||
description = "Car: hot_rod",
|
||||
vehicle_mash:register_car("vehicle_mash:car_hot_rod", {
|
||||
description = "Hot Rod car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_red.png",
|
||||
wield_image = "inv_car_red.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
54
init.lua
54
init.lua
@ -1,28 +1,32 @@
|
||||
-- Cars Api
|
||||
dofile(minetest.get_modpath("cars").."/api.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/api.lua")
|
||||
|
||||
-- Cars
|
||||
dofile(minetest.get_modpath("cars").."/126r.lua")
|
||||
dofile(minetest.get_modpath("cars").."/f1.lua")
|
||||
dofile(minetest.get_modpath("cars").."/black.lua")
|
||||
dofile(minetest.get_modpath("cars").."/blue.lua")
|
||||
dofile(minetest.get_modpath("cars").."/brown.lua")
|
||||
dofile(minetest.get_modpath("cars").."/cyan.lua")
|
||||
dofile(minetest.get_modpath("cars").."/dark_green.lua")
|
||||
dofile(minetest.get_modpath("cars").."/dark_grey.lua")
|
||||
dofile(minetest.get_modpath("cars").."/green.lua")
|
||||
dofile(minetest.get_modpath("cars").."/grey.lua")
|
||||
dofile(minetest.get_modpath("cars").."/magenta.lua")
|
||||
dofile(minetest.get_modpath("cars").."/orange.lua")
|
||||
dofile(minetest.get_modpath("cars").."/pink.lua")
|
||||
dofile(minetest.get_modpath("cars").."/red.lua")
|
||||
dofile(minetest.get_modpath("cars").."/violet.lua")
|
||||
dofile(minetest.get_modpath("cars").."/white.lua")
|
||||
dofile(minetest.get_modpath("cars").."/yellow.lua")
|
||||
dofile(minetest.get_modpath("cars").."/hot_rod.lua")
|
||||
dofile(minetest.get_modpath("cars").."/nyan_ride.lua")
|
||||
dofile(minetest.get_modpath("cars").."/oerkki_bliss.lua")
|
||||
dofile(minetest.get_modpath("cars").."/road_master.lua")
|
||||
dofile(minetest.get_modpath("cars").."/mese_blue.lua")
|
||||
dofile(minetest.get_modpath("cars").."/mese_pink.lua")
|
||||
dofile(minetest.get_modpath("cars").."/mese_purple.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/126r.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/f1.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/black.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/blue.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/brown.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/cyan.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/dark_green.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/dark_grey.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/green.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/grey.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/magenta.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/orange.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/pink.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/red.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/violet.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/white.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/yellow.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/hot_rod.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/nyan_ride.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/oerkki_bliss.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/road_master.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/mese_blue.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/mese_pink.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/mese_purple.lua")
|
||||
|
||||
-- Boats
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/boat.lua")
|
||||
dofile(minetest.get_modpath("vehicle_mash").."/rowboat.lua")
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_magenta", {
|
||||
description = "Car: magenta",
|
||||
vehicle_mash:register_car("vehicle_mash:car_magenta", {
|
||||
description = "Magenta car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_magenta.png",
|
||||
wield_image = "inv_car_magenta.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:mesecar_blue", {
|
||||
description = "Car: mesecar_blue",
|
||||
vehicle_mash:register_car("vehicle_mash:mesecar_blue", {
|
||||
description = "Mesecar blue",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "mesecar_car1front.png",
|
||||
wield_image = "mesecar_car1front.png",
|
||||
wield_scale = {x=2, y=2, z=2},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:mesecar_pink", {
|
||||
description = "Car: mesecar_pink",
|
||||
vehicle_mash:register_car("vehicle_mash:mesecar_pink", {
|
||||
description = "Mesecar pink",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "mesecar_car3front.png",
|
||||
wield_image = "mesecar_car3front.png",
|
||||
wield_scale = {x=2, y=2, z=2},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:mesecar_purple", {
|
||||
description = "Car: mesecar_purple",
|
||||
vehicle_mash:register_car("vehicle_mash:mesecar_purple", {
|
||||
description = "Mesecar purple",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "mesecar_car2front.png",
|
||||
wield_image = "mesecar_car2front.png",
|
||||
wield_scale = {x=2, y=2, z=2},
|
||||
|
11110
models/boat.x
Normal file
11110
models/boat.x
Normal file
File diff suppressed because it is too large
Load Diff
760
models/rowboat.x
Normal file
760
models/rowboat.x
Normal file
@ -0,0 +1,760 @@
|
||||
xof 0303txt 0032
|
||||
|
||||
Frame Root {
|
||||
FrameTransformMatrix {
|
||||
1.000000, 0.000000, 0.000000, 0.000000,
|
||||
0.000000,-0.000000, 1.000000, 0.000000,
|
||||
0.000000, 1.000000, 0.000000, 0.000000,
|
||||
0.000000, 0.000000, 0.000000, 1.000000;;
|
||||
}
|
||||
Frame Cube_000 {
|
||||
FrameTransformMatrix {
|
||||
1.000000, 0.000000, 0.000000, 0.000000,
|
||||
0.000000, 1.000000, 0.000000, 0.000000,
|
||||
0.000000, 0.000000, 1.000000, 0.000000,
|
||||
0.000000, 0.000000, 0.000000, 1.000000;;
|
||||
}
|
||||
Mesh { // Cube_000 mesh
|
||||
240;
|
||||
6.000000; 3.999999; 2.376923;,
|
||||
5.999998;-8.000001; 2.376923;,
|
||||
5.999998;-8.000001; 4.376923;,
|
||||
6.000001; 3.999999; 4.376923;,
|
||||
-2.000000; 8.000000; 2.376923;,
|
||||
2.000000; 8.000000; 2.376923;,
|
||||
2.000001; 8.000000; 4.376923;,
|
||||
-1.999999; 8.000000; 4.376923;,
|
||||
-6.000000; 4.000000; 4.376923;,
|
||||
-6.000001;-8.000000; 4.376923;,
|
||||
-6.000001;-7.999999; 2.376923;,
|
||||
-6.000000; 4.000000; 2.376923;,
|
||||
-3.999999; 6.000001; 2.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
-2.000001;-8.000002; 2.376923;,
|
||||
-4.000001;-8.000000; 2.376923;,
|
||||
-2.000000; 4.000000;-1.623077;,
|
||||
-2.000001;-7.999999;-1.623077;,
|
||||
1.999999;-8.000001;-1.623077;,
|
||||
2.000000; 4.000000;-1.623077;,
|
||||
-2.000000; 4.000000; 0.376923;,
|
||||
2.000000; 3.999999; 0.376923;,
|
||||
1.999999;-8.000001; 0.376923;,
|
||||
-2.000001;-8.000000; 0.376923;,
|
||||
-2.000000; 4.000000;-1.623077;,
|
||||
2.000000; 4.000000;-1.623077;,
|
||||
2.000000; 3.999999; 0.376923;,
|
||||
-2.000000; 4.000000; 0.376923;,
|
||||
2.000000; 4.000000;-1.623077;,
|
||||
1.999999;-8.000001;-1.623077;,
|
||||
1.999999;-8.000001; 0.376923;,
|
||||
2.000000; 3.999999; 0.376923;,
|
||||
1.999999;-8.000001;-1.623077;,
|
||||
-2.000001;-7.999999;-1.623077;,
|
||||
-2.000001;-8.000000; 0.376923;,
|
||||
1.999999;-8.000001; 0.376923;,
|
||||
-2.000000; 4.000000; 0.376923;,
|
||||
-2.000001;-8.000000; 0.376923;,
|
||||
-2.000001;-7.999999;-1.623077;,
|
||||
-2.000000; 4.000000;-1.623077;,
|
||||
-4.000001;-8.000000; 0.376923;,
|
||||
-4.000001;-10.000000; 0.376923;,
|
||||
4.000000;-10.000000; 0.376923;,
|
||||
3.999999;-8.000000; 0.376923;,
|
||||
-4.000000;-7.999999; 4.376923;,
|
||||
4.000000;-8.000001; 4.376923;,
|
||||
3.999999;-10.000001; 4.376923;,
|
||||
-4.000001;-10.000000; 4.376923;,
|
||||
-4.000001;-8.000000; 0.376923;,
|
||||
3.999999;-8.000000; 0.376923;,
|
||||
4.000000;-8.000001; 4.376923;,
|
||||
-4.000000;-7.999999; 4.376923;,
|
||||
3.999999;-8.000000; 0.376923;,
|
||||
4.000000;-10.000000; 0.376923;,
|
||||
3.999999;-10.000001; 4.376923;,
|
||||
4.000000;-8.000001; 4.376923;,
|
||||
4.000000;-10.000000; 0.376923;,
|
||||
-4.000001;-10.000000; 0.376923;,
|
||||
-4.000001;-10.000000; 4.376923;,
|
||||
3.999999;-10.000001; 4.376923;,
|
||||
-4.000000;-7.999999; 4.376923;,
|
||||
-4.000001;-10.000000; 4.376923;,
|
||||
-4.000001;-10.000000; 0.376923;,
|
||||
-4.000001;-8.000000; 0.376923;,
|
||||
4.000000; 4.000000; 2.376923;,
|
||||
3.999999;-8.000001; 2.376923;,
|
||||
5.999998;-8.000001; 2.376923;,
|
||||
6.000000; 3.999999; 2.376923;,
|
||||
4.000001; 4.000000; 4.376923;,
|
||||
6.000001; 3.999999; 4.376923;,
|
||||
5.999998;-8.000001; 4.376923;,
|
||||
4.000000;-8.000001; 4.376923;,
|
||||
4.000000; 4.000000; 2.376923;,
|
||||
6.000000; 3.999999; 2.376923;,
|
||||
6.000001; 3.999999; 4.376923;,
|
||||
4.000001; 4.000000; 4.376923;,
|
||||
5.999998;-8.000001; 2.376923;,
|
||||
3.999999;-8.000001; 2.376923;,
|
||||
4.000000;-8.000001; 4.376923;,
|
||||
5.999998;-8.000001; 4.376923;,
|
||||
4.000001; 4.000000; 4.376923;,
|
||||
4.000000;-8.000001; 4.376923;,
|
||||
3.999999;-8.000001; 2.376923;,
|
||||
4.000000; 4.000000; 2.376923;,
|
||||
2.000000; 6.000000; 0.376923;,
|
||||
1.999999;-8.000001; 0.376923;,
|
||||
3.999999;-8.000000; 0.376923;,
|
||||
4.000000; 6.000000; 0.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
4.000001; 5.999999; 2.376923;,
|
||||
3.999999;-8.000001; 2.376923;,
|
||||
1.999999;-8.000000; 2.376923;,
|
||||
2.000000; 6.000000; 0.376923;,
|
||||
4.000000; 6.000000; 0.376923;,
|
||||
4.000001; 5.999999; 2.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
4.000000; 6.000000; 0.376923;,
|
||||
3.999999;-8.000000; 0.376923;,
|
||||
3.999999;-8.000001; 2.376923;,
|
||||
4.000001; 5.999999; 2.376923;,
|
||||
3.999999;-8.000000; 0.376923;,
|
||||
1.999999;-8.000001; 0.376923;,
|
||||
1.999999;-8.000000; 2.376923;,
|
||||
3.999999;-8.000001; 2.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
1.999999;-8.000000; 2.376923;,
|
||||
1.999999;-8.000001; 0.376923;,
|
||||
2.000000; 6.000000; 0.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
2.000000; 4.000000; 2.376923;,
|
||||
4.000000; 4.000000; 2.376923;,
|
||||
4.000001; 5.999999; 2.376923;,
|
||||
2.000001; 6.000000; 4.376923;,
|
||||
4.000001; 5.999999; 4.376923;,
|
||||
4.000001; 4.000000; 4.376923;,
|
||||
2.000000; 4.000000; 4.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
4.000001; 5.999999; 2.376923;,
|
||||
4.000001; 5.999999; 4.376923;,
|
||||
2.000001; 6.000000; 4.376923;,
|
||||
4.000001; 5.999999; 2.376923;,
|
||||
4.000000; 4.000000; 2.376923;,
|
||||
4.000001; 4.000000; 4.376923;,
|
||||
4.000001; 5.999999; 4.376923;,
|
||||
4.000000; 4.000000; 2.376923;,
|
||||
2.000000; 4.000000; 2.376923;,
|
||||
2.000000; 4.000000; 4.376923;,
|
||||
4.000001; 4.000000; 4.376923;,
|
||||
2.000001; 6.000000; 4.376923;,
|
||||
2.000000; 4.000000; 4.376923;,
|
||||
2.000000; 4.000000; 2.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
-3.999999; 6.000001; 2.376923;,
|
||||
-4.000000; 4.000000; 2.376923;,
|
||||
-2.000000; 4.000000; 2.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
-3.999999; 6.000001; 4.376923;,
|
||||
-1.999999; 6.000000; 4.376923;,
|
||||
-2.000000; 4.000000; 4.376923;,
|
||||
-4.000000; 3.999999; 4.376923;,
|
||||
-3.999999; 6.000001; 2.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
-1.999999; 6.000000; 4.376923;,
|
||||
-3.999999; 6.000001; 4.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
-2.000000; 4.000000; 2.376923;,
|
||||
-2.000000; 4.000000; 4.376923;,
|
||||
-1.999999; 6.000000; 4.376923;,
|
||||
-2.000000; 4.000000; 2.376923;,
|
||||
-4.000000; 4.000000; 2.376923;,
|
||||
-4.000000; 3.999999; 4.376923;,
|
||||
-2.000000; 4.000000; 4.376923;,
|
||||
-3.999999; 6.000001; 4.376923;,
|
||||
-4.000000; 3.999999; 4.376923;,
|
||||
-4.000000; 4.000000; 2.376923;,
|
||||
-3.999999; 6.000001; 2.376923;,
|
||||
-2.000000; 8.000000; 2.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
2.000000; 8.000000; 2.376923;,
|
||||
-1.999999; 8.000000; 4.376923;,
|
||||
2.000001; 8.000000; 4.376923;,
|
||||
2.000001; 6.000000; 4.376923;,
|
||||
-1.999999; 6.000000; 4.376923;,
|
||||
2.000000; 8.000000; 2.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
2.000001; 6.000000; 4.376923;,
|
||||
2.000001; 8.000000; 4.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
-1.999999; 6.000000; 4.376923;,
|
||||
2.000001; 6.000000; 4.376923;,
|
||||
-1.999999; 8.000000; 4.376923;,
|
||||
-1.999999; 6.000000; 4.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
-2.000000; 8.000000; 2.376923;,
|
||||
-2.000000; 6.000000; 0.376923;,
|
||||
-2.000000; 4.000000; 0.376923;,
|
||||
2.000000; 3.999999; 0.376923;,
|
||||
2.000000; 6.000000; 0.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
2.000000; 4.000000; 2.376923;,
|
||||
-2.000000; 4.000000; 2.376923;,
|
||||
-2.000000; 6.000000; 0.376923;,
|
||||
2.000000; 6.000000; 0.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
2.000000; 6.000000; 0.376923;,
|
||||
2.000000; 3.999999; 0.376923;,
|
||||
2.000000; 4.000000; 2.376923;,
|
||||
2.000001; 6.000000; 2.376923;,
|
||||
2.000000; 3.999999; 0.376923;,
|
||||
-2.000000; 4.000000; 0.376923;,
|
||||
-2.000000; 4.000000; 2.376923;,
|
||||
2.000000; 4.000000; 2.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
-2.000000; 4.000000; 2.376923;,
|
||||
-2.000000; 4.000000; 0.376923;,
|
||||
-2.000000; 6.000000; 0.376923;,
|
||||
-6.000000; 4.000000; 2.376923;,
|
||||
-6.000001;-7.999999; 2.376923;,
|
||||
-4.000001;-8.000000; 2.376923;,
|
||||
-4.000000; 4.000000; 2.376923;,
|
||||
-6.000000; 4.000000; 4.376923;,
|
||||
-4.000000; 3.999999; 4.376923;,
|
||||
-4.000000;-7.999999; 4.376923;,
|
||||
-6.000001;-8.000000; 4.376923;,
|
||||
-6.000000; 4.000000; 2.376923;,
|
||||
-4.000000; 4.000000; 2.376923;,
|
||||
-4.000000; 3.999999; 4.376923;,
|
||||
-6.000000; 4.000000; 4.376923;,
|
||||
-4.000000; 4.000000; 2.376923;,
|
||||
-4.000001;-8.000000; 2.376923;,
|
||||
-4.000000;-7.999999; 4.376923;,
|
||||
-4.000000; 3.999999; 4.376923;,
|
||||
-4.000001;-8.000000; 2.376923;,
|
||||
-6.000001;-7.999999; 2.376923;,
|
||||
-6.000001;-8.000000; 4.376923;,
|
||||
-4.000000;-7.999999; 4.376923;,
|
||||
-4.000000; 6.000001; 0.376923;,
|
||||
-4.000001;-8.000000; 0.376923;,
|
||||
-2.000001;-8.000000; 0.376923;,
|
||||
-2.000000; 6.000000; 0.376923;,
|
||||
-4.000000; 6.000001; 0.376923;,
|
||||
-2.000000; 6.000000; 0.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
-3.999999; 6.000001; 2.376923;,
|
||||
-2.000000; 6.000000; 0.376923;,
|
||||
-2.000001;-8.000000; 0.376923;,
|
||||
-2.000001;-8.000002; 2.376923;,
|
||||
-1.999999; 6.000000; 2.376923;,
|
||||
-2.000001;-8.000000; 0.376923;,
|
||||
-4.000001;-8.000000; 0.376923;,
|
||||
-4.000001;-8.000000; 2.376923;,
|
||||
-2.000001;-8.000002; 2.376923;,
|
||||
-3.999999; 6.000001; 2.376923;,
|
||||
-4.000001;-8.000000; 2.376923;,
|
||||
-4.000001;-8.000000; 0.376923;,
|
||||
-4.000000; 6.000001; 0.376923;;
|
||||
60;
|
||||
4;0,1,2,3;,
|
||||
4;4,5,6,7;,
|
||||
4;8,9,10,11;,
|
||||
4;12,13,14,15;,
|
||||
4;16,17,18,19;,
|
||||
4;20,21,22,23;,
|
||||
4;24,25,26,27;,
|
||||
4;28,29,30,31;,
|
||||
4;32,33,34,35;,
|
||||
4;36,37,38,39;,
|
||||
4;40,41,42,43;,
|
||||
4;44,45,46,47;,
|
||||
4;48,49,50,51;,
|
||||
4;52,53,54,55;,
|
||||
4;56,57,58,59;,
|
||||
4;60,61,62,63;,
|
||||
4;64,65,66,67;,
|
||||
4;68,69,70,71;,
|
||||
4;72,73,74,75;,
|
||||
4;76,77,78,79;,
|
||||
4;80,81,82,83;,
|
||||
4;84,85,86,87;,
|
||||
4;88,89,90,91;,
|
||||
4;92,93,94,95;,
|
||||
4;96,97,98,99;,
|
||||
4;100,101,102,103;,
|
||||
4;104,105,106,107;,
|
||||
4;108,109,110,111;,
|
||||
4;112,113,114,115;,
|
||||
4;116,117,118,119;,
|
||||
4;120,121,122,123;,
|
||||
4;124,125,126,127;,
|
||||
4;128,129,130,131;,
|
||||
4;132,133,134,135;,
|
||||
4;136,137,138,139;,
|
||||
4;140,141,142,143;,
|
||||
4;144,145,146,147;,
|
||||
4;148,149,150,151;,
|
||||
4;152,153,154,155;,
|
||||
4;156,157,158,159;,
|
||||
4;160,161,162,163;,
|
||||
4;164,165,166,167;,
|
||||
4;168,169,170,171;,
|
||||
4;172,173,174,175;,
|
||||
4;176,177,178,179;,
|
||||
4;180,181,182,183;,
|
||||
4;184,185,186,187;,
|
||||
4;188,189,190,191;,
|
||||
4;192,193,194,195;,
|
||||
4;196,197,198,199;,
|
||||
4;200,201,202,203;,
|
||||
4;204,205,206,207;,
|
||||
4;208,209,210,211;,
|
||||
4;212,213,214,215;,
|
||||
4;216,217,218,219;,
|
||||
4;220,221,222,223;,
|
||||
4;224,225,226,227;,
|
||||
4;228,229,230,231;,
|
||||
4;232,233,234,235;,
|
||||
4;236,237,238,239;;
|
||||
MeshNormals { // Cube_000 normals
|
||||
60;
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000;-1.000000;-0.000000;,
|
||||
1.000000;-0.000000; 0.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
1.000000;-0.000000;-0.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-1.000000; 0.000000;-0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
1.000000;-0.000000;-0.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
1.000000;-0.000000;-0.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
-0.000000;-1.000000;-0.000001;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
1.000000;-0.000000;-0.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
-0.000000;-1.000000; 0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
1.000000;-0.000001;-0.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
-0.000001;-1.000000; 0.000000;,
|
||||
-1.000000; 0.000001;-0.000000;,
|
||||
-0.000000; 1.000000; 0.000000;,
|
||||
1.000000;-0.000000;-0.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
-1.000000;-0.000000; 0.000000;,
|
||||
-0.000000; 1.000000;-0.000000;,
|
||||
1.000000; 0.000000;-0.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
0.000000;-1.000000;-0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000; 1.000000;-0.000000;,
|
||||
1.000000;-0.000000;-0.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
0.000000; 0.000000;-1.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000000; 1.000000; 0.000000;,
|
||||
0.000000; 0.000000; 1.000000;,
|
||||
-0.000000;-1.000000;-0.000000;,
|
||||
-1.000000; 0.000000; 0.000000;,
|
||||
0.000001; 1.000000; 0.000001;,
|
||||
1.000000;-0.000000;-0.000000;;
|
||||
60;
|
||||
4;0,0,0,0;,
|
||||
4;1,1,1,1;,
|
||||
4;2,2,2,2;,
|
||||
4;3,3,3,3;,
|
||||
4;4,4,4,4;,
|
||||
4;5,5,5,5;,
|
||||
4;6,6,6,6;,
|
||||
4;7,7,7,7;,
|
||||
4;8,8,8,8;,
|
||||
4;9,9,9,9;,
|
||||
4;10,10,10,10;,
|
||||
4;11,11,11,11;,
|
||||
4;12,12,12,12;,
|
||||
4;13,13,13,13;,
|
||||
4;14,14,14,14;,
|
||||
4;15,15,15,15;,
|
||||
4;16,16,16,16;,
|
||||
4;17,17,17,17;,
|
||||
4;18,18,18,18;,
|
||||
4;19,19,19,19;,
|
||||
4;20,20,20,20;,
|
||||
4;21,21,21,21;,
|
||||
4;22,22,22,22;,
|
||||
4;23,23,23,23;,
|
||||
4;24,24,24,24;,
|
||||
4;25,25,25,25;,
|
||||
4;26,26,26,26;,
|
||||
4;27,27,27,27;,
|
||||
4;28,28,28,28;,
|
||||
4;29,29,29,29;,
|
||||
4;30,30,30,30;,
|
||||
4;31,31,31,31;,
|
||||
4;32,32,32,32;,
|
||||
4;33,33,33,33;,
|
||||
4;34,34,34,34;,
|
||||
4;35,35,35,35;,
|
||||
4;36,36,36,36;,
|
||||
4;37,37,37,37;,
|
||||
4;38,38,38,38;,
|
||||
4;39,39,39,39;,
|
||||
4;40,40,40,40;,
|
||||
4;41,41,41,41;,
|
||||
4;42,42,42,42;,
|
||||
4;43,43,43,43;,
|
||||
4;44,44,44,44;,
|
||||
4;45,45,45,45;,
|
||||
4;46,46,46,46;,
|
||||
4;47,47,47,47;,
|
||||
4;48,48,48,48;,
|
||||
4;49,49,49,49;,
|
||||
4;50,50,50,50;,
|
||||
4;51,51,51,51;,
|
||||
4;52,52,52,52;,
|
||||
4;53,53,53,53;,
|
||||
4;54,54,54,54;,
|
||||
4;55,55,55,55;,
|
||||
4;56,56,56,56;,
|
||||
4;57,57,57,57;,
|
||||
4;58,58,58,58;,
|
||||
4;59,59,59,59;;
|
||||
} // End of Cube_000 normals
|
||||
MeshTextureCoords { // Cube_000 UV coordinates
|
||||
240;
|
||||
6.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
6.000000; 0.000000;,
|
||||
2.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
2.000000; 0.000000;,
|
||||
6.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
6.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
5.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-1.000000;,
|
||||
5.000000;-1.000000;,
|
||||
6.000000;-1.000000;,
|
||||
6.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-1.000000;,
|
||||
2.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
2.000000; 0.000000;,
|
||||
6.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
6.000000; 0.000000;,
|
||||
3.000000; 0.999999;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000001;,
|
||||
3.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000001; 1.000000;,
|
||||
0.000000;-4.000000;,
|
||||
1.000000;-4.000000;,
|
||||
1.000000;-3.000000;,
|
||||
0.999999; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-3.000000;,
|
||||
4.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-1.000000;,
|
||||
4.000000;-1.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-1.000000;,
|
||||
1.000000;-1.000000;,
|
||||
5.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-0.999999;,
|
||||
5.000000;-1.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-1.000000;,
|
||||
1.000000;-1.000000;,
|
||||
5.375000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
5.375000; 0.000000;,
|
||||
5.375000; 0.000000;,
|
||||
5.375000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
6.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
6.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-1.000000;,
|
||||
1.000000;-1.000000;,
|
||||
1.000000;-1.000000;,
|
||||
0.999999; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-1.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
2.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000001;,
|
||||
2.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-1.000000;,
|
||||
1.000000;-1.000000;,
|
||||
1.000000;-1.000000;,
|
||||
0.999999; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000;-1.000000;,
|
||||
2.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
2.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
2.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000001;,
|
||||
2.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
6.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
6.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
7.000000; 0.000000;,
|
||||
1.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
1.000000; 0.000000;,
|
||||
7.000000; 1.000000;,
|
||||
0.000000; 1.000000;,
|
||||
0.000000; 0.000000;,
|
||||
7.000000; 0.000000;;
|
||||
} // End of Cube_000 UV coordinates
|
||||
MeshMaterialList { // Cube_000 material list
|
||||
1;
|
||||
60;
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0;;
|
||||
Material Material {
|
||||
0.640000; 0.640000; 0.640000; 1.000000;;
|
||||
96.078431;
|
||||
0.500000; 0.500000; 0.500000;;
|
||||
0.000000; 0.000000; 0.000000;;
|
||||
TextureFilename {"default_wood.png";}
|
||||
}
|
||||
} // End of Cube_000 material list
|
||||
} // End of Cube_000 mesh
|
||||
} // End of Cube_000
|
||||
} // End of Root
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_nyan_ride", {
|
||||
description = "Car: nyan_ride",
|
||||
vehicle_mash:register_car("vehicle_mash:car_nyan_ride", {
|
||||
description = "Nyan Ride car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_pink.png",
|
||||
wield_image = "inv_car_pink.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_oerkki_bliss", {
|
||||
description = "Car: oerkki_bliss",
|
||||
vehicle_mash:register_car("vehicle_mash:car_oerkki_bliss", {
|
||||
description = "Oerkki Bliss car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_black.png",
|
||||
wield_image = "inv_car_black.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_orange", {
|
||||
description = "Car: orange",
|
||||
vehicle_mash:register_car("vehicle_mash:car_orange", {
|
||||
description = "Orange car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_orange.png",
|
||||
wield_image = "inv_car_orange.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
7
pink.lua
7
pink.lua
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_pink", {
|
||||
description = "Car: pink",
|
||||
vehicle_mash:register_car("vehicle_mash:car_pink", {
|
||||
description = "Pink car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_pink.png",
|
||||
wield_image = "inv_car_pink.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
7
red.lua
7
red.lua
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_red", {
|
||||
description = "Car: red",
|
||||
vehicle_mash:register_car("vehicle_mash:car_red", {
|
||||
description = "Red car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_red.png",
|
||||
wield_image = "inv_car_red.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_road_master", {
|
||||
description = "Car: road_master",
|
||||
vehicle_mash:register_car("vehicle_mash:car_road_master", {
|
||||
description = "Road Master car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_brown.png",
|
||||
wield_image = "inv_car_brown.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
24
rowboat.lua
Normal file
24
rowboat.lua
Normal file
@ -0,0 +1,24 @@
|
||||
vehicle_mash:register_car("vehicle_mash:rowboat", {
|
||||
description = "Rowboat",
|
||||
is_boat = true,
|
||||
drop_on_destroy = "default:wood 3",
|
||||
recipe = {
|
||||
{"", "", "" },
|
||||
{"group:wood", "", "group:wood"},
|
||||
{"group:wood", "group:wood", "group:wood"},
|
||||
},
|
||||
inventory_image = "rowboat_inventory.png",
|
||||
wield_image = "rowboat_wield.png",
|
||||
wield_scale = {x=2, y=2, z=1},
|
||||
visual = "mesh",
|
||||
mesh = "rowboat.x",
|
||||
visual_size = {x=1, y=1},
|
||||
textures = {"default_wood.png"},
|
||||
stepheight = 0, -- Stepheight, 0.6 = climb slabs, 1.1 = climb nodes
|
||||
max_speed_forward = 10,
|
||||
max_speed_reverse = 5,
|
||||
accel = 1,
|
||||
braking = 1,
|
||||
turn_speed = 2,
|
||||
collisionbox = {-0.5, -0.4, -0.5, 0.5, 0.3, 0.5},
|
||||
})
|
BIN
textures/boat_inventory.png
Normal file
BIN
textures/boat_inventory.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
textures/boat_wield.png
Normal file
BIN
textures/boat_wield.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 847 B |
BIN
textures/rowboat_inventory.png
Normal file
BIN
textures/rowboat_inventory.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 444 B |
BIN
textures/rowboat_wield.png
Normal file
BIN
textures/rowboat_wield.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 366 B |
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_violet", {
|
||||
description = "Car: violet",
|
||||
vehicle_mash:register_car("vehicle_mash:car_violet", {
|
||||
description = "Violet car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_violet.png",
|
||||
wield_image = "inv_car_violet.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_white", {
|
||||
description = "Car: white",
|
||||
vehicle_mash:register_car("vehicle_mash:car_white", {
|
||||
description = "White car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_white.png",
|
||||
wield_image = "inv_car_white.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
@ -1,5 +1,8 @@
|
||||
cars:register_car("cars:car_yellow", {
|
||||
description = "Car: yellow",
|
||||
vehicle_mash:register_car("vehicle_mash:car_yellow", {
|
||||
description = "Yellow car",
|
||||
is_boat = false,
|
||||
drop_on_destroy = "",
|
||||
recipe = {},
|
||||
inventory_image = "inv_car_yellow.png",
|
||||
wield_image = "inv_car_yellow.png",
|
||||
wield_scale = {x=1, y=1, z=1},
|
||||
|
Loading…
x
Reference in New Issue
Block a user