added support for ruby-prof, make trees jump to nearest vertex position.

This commit is contained in:
2018-07-08 14:39:57 -05:00
parent f21032935b
commit ded012a9e0
5 changed files with 21 additions and 5 deletions

View File

@@ -26,7 +26,6 @@ class IMICFPS
@skydome = Skydome.new(scale: 0.08, backface_culling: false, auto_manage: false)
25.times do
p @terrain.width
Tree.new(x: rand(@terrain.width)-(@terrain.width/2.0), z: rand(@terrain.depth)-(@terrain.depth/2.0), terrain: @terrain)
end
# Tree.new(x: 1, z: -5, terrain: @terrain)