Method: VoxelammingGem::BuildBox#initialize

Defined in:
lib/voxelamming_gem.rb

#initialize(room_name) ⇒ BuildBox

Returns a new instance of BuildBox.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/voxelamming_gem.rb', line 23

def initialize(room_name)
  @room_name = room_name
  @is_allowed_matrix = 0
  @saved_matrices = []
  @translation = [0, 0, 0, 0, 0, 0]
  @matrix_translation = [0, 0, 0, 0, 0, 0]
  @frame_translations = []
  @global_animation = [0, 0, 0, 0, 0, 0, 1, 0]
  @animation = [0, 0, 0, 0, 0, 0, 1, 0]
  @boxes = []
  @frames = []
  @sentence = []
  @lights = []
  @commands = []
  @size = 1
  @shape = 'box'
  @is_metallic = 0
  @roughness = 0.5
  @is_allowed_float = 0
  @build_interval = 0.01
  @is_framing = false
  @frame_id = 0
end