-
Notifications
You must be signed in to change notification settings - Fork 0
/
Other functions
146 lines (64 loc) · 2.68 KB
/
Other functions
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
- Combine:
rnmu:Combine( Table1 , Table2 )
Example:
local combine = rnmu:Combine({'Hello'},{'world!'})
print(combine) -- {'Hello','world!'}
Description:
Returns a table of Table1 and Table2 combined.
- Vector3RotationFromCFrame:
rnmu:Vector3RotationFromCFrame( CFrame )
Example:
local vector3rotationfromcframe = rnmu:Vector3RotationFromCFrame(CFrame)
print(vector3rotationfromcframe) -- Vector3.new(X, Y, Z)
Description:
Returns the vector3 orientation of CFrame.
- GetBoundingBox:
rnmu:GetBoundingBox( Part )
Example:
local getboundingbox = rnmu:GetBoundingBox(Part)
print(getboundingbox) -- Vector3.new(X, Y, Z)
Description:
Returns the vector3 size of the axis aligned bounding box orientation of Part.
- Get2DBoundingBox:
rnmu:Get2DBoundingBox( Part )
Example:
local get2dboundingbox = rnmu:Get2DBoundingBox(Part)
print(get2dboundingbox) -- {Size,Position}
Description:
Returns a table of the Size, and Position needed to put a 2d bounding box around an object.
- Point:
rnmu:Point( Position1 , Position2 , { Size } or Part )
Example:
local point = rnmu:Point(Position1,Position2,Part)
print(point) -- {Size,CFrame}
Description:
Returns Size, and CFrame needed to make a line between Position1, and Position2, with the size of Part (or vector3 size in table).
- GetCorners:
rnmu:GetCorners( { Size , CFrame } or Part )
Example:
local getcorners = rnmu:GetCorners(Part)
print(getcorners) -- {{CFrame,Vector},...}
Description:
Returns a table of tables, with the cframe of the corner, and the signed XYZ of the position of Part, to the position of the corner.
- GetEdges:
rnmu:GetEdges( { Size , CFrame } or Part )
Example:
local getedges = rnmu:GetEdges(Part)
print(getedges) -- {{CFrame,Vector},...}
Description:
Returns a table of tables, with the cframe of the edge, and the signed XYZ of the position of Part, to the position of the edge.
- GetSides:
rnmu:GetSides( { Size , CFrame } or Part )
Example:
local getsides = rnmu:GetSides(Part)
print(getsides) -- {{CFrame,Vector},...}
Description:
Returns a table of tables, with the cframe of the side, and the signed XYZ of the position of Part, to the position of the side.
- Rendered:
rnmu:Rendered( Part )
Example:
local rendered = rnmu:Rendered(Part)
print(rendered) -- true/false
Description:
Returns true if object is visible on screen, note that this function DOES NOT USE WorldToViewportPoint (which is terribly terribly inaccurate),
instead this uses a better method which gets it perfect 99% of the time.