-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathobject_rotations.lua
More file actions
40 lines (33 loc) · 984 Bytes
/
object_rotations.lua
File metadata and controls
40 lines (33 loc) · 984 Bytes
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
-- who would have thunked, but rotation for attachd objects works differently to direct object rotation
local rotations = {}
local d = 180
local r = d / 2
rotations.facedir = {
[0] = vector.new(0, 0, 0),
vector.new( 0, r, 0),
vector.new( 0, d, 0),
vector.new( 0, -r, 0),
vector.new( r, 0, 0),
vector.new( r, 0, r),
vector.new( r, 0, d),
vector.new( r, 0, -r),
vector.new(-r, 0, 0),
vector.new(-r, 0, -r),
vector.new(-r, 0, d),
vector.new(-r, 0, r),
vector.new( 0, 0, -r),
vector.new( 0, r, -r),
vector.new( 0, d, -r),
vector.new( 0, -r, -r),
vector.new( 0, 0, r),
vector.new( 0, r, r),
vector.new( 0, d, r),
vector.new( 0, -r, r),
vector.new( 0, 0, d),
vector.new( 0, r, d),
vector.new( 0, d, d),
vector.new( 0, -r, d),
}
-- TODO: signlike nodes always display as an extrusion of texture, like in dropped item form
-- displaying them correctly will require makeing a custom display obect for them
return rotations