Collada parser mostly works for single object/material models

This commit is contained in:
2020-01-30 13:36:34 -06:00
parent b8e53c7a88
commit dbf4edbb93
4 changed files with 39 additions and 8 deletions

View File

@@ -1,10 +1,11 @@
class IMICFPS
class Model
class ModelObject
attr_reader :name, :vertices, :textures, :normals, :bounding_box, :debug_color
attr_reader :id, :name, :vertices, :textures, :normals, :bounding_box, :debug_color
attr_accessor :faces, :scale
def initialize(name)
def initialize(id, name)
@id = id
@name = name
@vertices = []
@textures = []