This commit is contained in:
2018-03-22 21:12:21 -05:00
parent bdbb5f2e94
commit dacf05475f
6 changed files with 25 additions and 21 deletions

View File

@@ -16,8 +16,7 @@ class IMICFPS
def initialize(file_path:, game_object:)
@game_object = game_object
@x, @y, @z = game_object.x, game_object.y, game_object.z
@scale = game_object.scale
update
@file_path = file_path
@file = File.open(file_path, 'r')
@material_file = nil
@@ -88,6 +87,11 @@ class IMICFPS
end
$window.number_of_faces+=self.faces.size
end
def update
@x, @y, @z = @game_object.x, @game_object.y, @game_object.z
@scale = @game_object.scale
end
end
end
end