148 lines
3.3 KiB
Plaintext
Executable File
148 lines
3.3 KiB
Plaintext
Executable File
local vec3 = require "vec3"
|
|
local transf = require "transf"
|
|
|
|
function data()
|
|
return {
|
|
boundingInfo = {
|
|
bbMax = {
|
|
9.4412250518799, 1.4945479631424, 4.2960352897644,
|
|
},
|
|
bbMin = {
|
|
-9.4412250518799, -1.4945479631424, -0.67091447114944,
|
|
},
|
|
|
|
},
|
|
collider = {
|
|
params = {
|
|
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
lods = {
|
|
{
|
|
animations = {
|
|
|
|
},
|
|
children = {
|
|
{
|
|
id = "vehicle/train/br_246_traxx/lod_0_body.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/train/br_246_traxx/lod_0_interior.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/train/br_246_traxx/lod_0_vent.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
}, {
|
|
id = "vehicle/train/br_246_traxx_lod_0_bogie.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 5.2243, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
}, {
|
|
id = "vehicle/train/br_246_traxx_lod_0_bogie.grp",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -5.2243, 0, 0, 1,
|
|
},
|
|
type = "GROUP",
|
|
},
|
|
{
|
|
id = "vehicle/asset/lod_0_light_round_white.msh",
|
|
--manual lights
|
|
transf = transf.scaleRotZYXTransl(vec3.new(1.0,1.25,1.25),transf.degToRad( 0.0, -17.0, 0.0), vec3.new( 8.88, 0.0, 2.295)),
|
|
type = "MESH",
|
|
},
|
|
{
|
|
id = "vehicle/asset/lod_0_light_round_white.msh",
|
|
--manual lights
|
|
transf = transf.scaleRotZYXTransl(vec3.new(1.0,0.8,0.8),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 9.05, -0.905, 1.525)),
|
|
type = "MESH",
|
|
},
|
|
{
|
|
id = "vehicle/asset/lod_0_light_round_white.msh",
|
|
--manual lights
|
|
transf = transf.scaleRotZYXTransl(vec3.new(1.0,0.8,0.8),transf.degToRad( 0.0, 0.0, 0.0), vec3.new( 9.05, 0.905, 1.525)),
|
|
type = "MESH",
|
|
},{
|
|
id = "vehicle/train/br_246_traxx/lod_0_logo_body.msh",
|
|
transf = {
|
|
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
|
|
},
|
|
type = "MESH",
|
|
|
|
},
|
|
|
|
},
|
|
events = {
|
|
|
|
},
|
|
matConfigs = {
|
|
{
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
},
|
|
},
|
|
static = false,
|
|
visibleFrom = 0,
|
|
visibleTo = 1680,
|
|
|
|
},
|
|
},
|
|
|
|
metadata = {
|
|
description = {
|
|
name = _("Class 246"),
|
|
description = _("In this diesel locomotive the fuel tank occupies the same space as the transformer in the electric version.")
|
|
},
|
|
railVehicle = {
|
|
topSpeed = 160,
|
|
weight = 80,
|
|
engines = {
|
|
{ type = "DIESEL", power = 2000, tractiveEffort = 240 }
|
|
},
|
|
configs = {
|
|
{
|
|
axles = {
|
|
"vehicle/train/br_246_traxx/lod_0_w1.msh",
|
|
"vehicle/train/br_246_traxx/lod_0_w2.msh"
|
|
}
|
|
},
|
|
|
|
},
|
|
soundSet = { name = "train_diesel", horn = "vehicle/truck_modern/horn.wav" }
|
|
},
|
|
transportVehicle = {
|
|
carrier = "RAIL",
|
|
seats = {
|
|
{ group = 1, transf = transf.rotZYXTransl(transf.degToRad(0.0, 0.0, 0.0), vec3.new(7.4, -.7, 1.52)), crew = true, standing = false},
|
|
},
|
|
},
|
|
availability = {
|
|
yearFrom = 3000,
|
|
yearTo = 3000
|
|
},
|
|
cost = {
|
|
price = -1
|
|
},
|
|
maintenance = {
|
|
runningCosts = -1,
|
|
lifespan = 40
|
|
}
|
|
},
|
|
|
|
|
|
}
|
|
end
|