Replaced Vertex struct with Vector class

This commit is contained in:
2019-02-20 11:00:42 -06:00
parent 7b903fbdb9
commit a6e175d9e0
6 changed files with 59 additions and 10 deletions

View File

@@ -211,7 +211,7 @@ class IMICFPS
@bounding_boxes.each do |key, bounding_box|
glPushMatrix
glTranslatef(bounding_box[:object].x, bounding_box[:object].y, bounding_box[:object].z)
glTranslatef(bounding_box[:object].position.x, bounding_box[:object].position.y, bounding_box[:object].position.z)
draw_bounding_box(bounding_box)
@bounding_boxes[key][:objects].each {|o| draw_bounding_box(o)}