Various tweaks

This commit is contained in:
2019-02-26 18:43:42 -06:00
parent 8ccd1506f3
commit 2e69647ae3
9 changed files with 85 additions and 46 deletions

View File

@@ -2,6 +2,7 @@ class IMICFPS
class TestObject < Entity
def setup
bind_model("base", "war_factory")
@backface_culling = false
end
end
end

View File

@@ -7,8 +7,8 @@ class IMICFPS
include GLU
include CommonMethods
attr_accessor :scale, :visible, :renderable, :backface_culling
attr_reader :position, :rotation, :velocity, :collision
attr_reader :model, :name, :debug_color, :bounding_box
attr_accessor :position, :rotation, :velocity
attr_reader :model, :name, :debug_color, :bounding_box, :collision
def initialize(x: 0, y: 0, z: 0, bound_model: nil, scale: MODEL_METER_SCALE, backface_culling: true, auto_manage: true, manifest_file: nil)
@position = Vector.new(x, y, z)
@scale = scale