-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
83 lines (73 loc) · 1.77 KB
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
require "AddAppDirectory"
require "TransparentGroup"
AddAppDirectory()
runfile[[simpleLights.lua]]
runfile[[SimSparta/SimSparta.lua]]
local function assignButtons(a)
if a.metal then
print("Loading METaL Buttons")
a.dragBtn = gadget.DigitalInterface("WMButtonB")
a.nextBtn = gadget.DigitalInterface("WMButtonRight")
a.prevBtn = gadget.DigitalInterface("WMButtonLeft")
a.resetBtn = gadget.DigitalInterface("WMButton1")
else
print("Loading Workstation Buttons")
a.nextBtn = gadget.DigitalInterface("VJButton0")
a.dragBtn = gadget.DigitalInterface("VJButton2")
a.prevBtn = gadget.DigitalInterface("VJButton1")
end
end
kitchen = Transform{
Transform{
scale = .02,
Model[[models/kitchen.ive]],
orientation = AngleAxis(Degrees(180),Axis{0,0,1})
},
orientation = AngleAxis(Degrees(-90),Axis{0,1,0})
}
RelativeTo.World:addChild(kitchen)
global_pos = {2.1,.733,-2.55}
global_scale = .001
blade = Transform{
position = global_pos,
Transform{
scale = global_scale,
Model[[models/blade.ive]]
}
}
blendingstand = Transform{
position = global_pos,
Transform{
scale = global_scale,
Model[[models/BlendingStand.ive]],
Model[[models/Feet.ive]]
}
}
holder = Transform{
position = global_pos,
Transform{
scale = global_scale,
Model[[models/Measurements.ive]],
TransparentGroup{
Model[[models/Holder2.ive]],
alpha = .2
}
}
}
top = Transform{
position = global_pos,
Transform{
scale = global_scale,
Model[[models/Top.jt.ive]]
}
}
location = {metal=true}
assignButtons(location)
SimSparta{
top, blade, blendingstand,holder,
cycleThroughParts = true,
dragBtn = location.dragBtn,
nextBtn = location.nextBtn,
prevBtn = location.prevBtn,
resetBtn = location.resetBtn,
}