mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
added width,height and depth vars to GameObjects, randomly position 25 trees about the terrain.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user