added width,height and depth vars to GameObjects, randomly position 25 trees about the terrain.

This commit is contained in:
2018-07-01 16:32:10 -05:00
parent 1eea3c92cb
commit 5fa2843de2
5 changed files with 33 additions and 17 deletions

View File

@@ -2,6 +2,7 @@ class IMICFPS
class Tree < GameObject
def setup
bind_model(ModelLoader.new(type: :obj, file_path: "objects/tree.obj", game_object: self))
self.y = @terrain.height_at(self)
end
# def update