mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Moved OBJ parser out of Model, added axis-aligned bounding boxes, added --debug, bounding boxes can be rendered.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class IMICFPS
|
||||
class Wavefront
|
||||
class Object
|
||||
attr_reader :name, :vertices, :textures, :normals
|
||||
attr_reader :name, :vertices, :textures, :normals, :bounding_box
|
||||
attr_accessor :faces
|
||||
|
||||
def initialize(name)
|
||||
@@ -10,6 +10,7 @@ class IMICFPS
|
||||
@textures = []
|
||||
@normals = []
|
||||
@faces = []
|
||||
@bounding_box = BoundingBox.new(nil,nil,nil, nil,nil,nil)
|
||||
|
||||
# Faces array packs everything:
|
||||
# vertex = index[0]
|
||||
|
||||
Reference in New Issue
Block a user