mirror of
https://github.com/cyberarm/cyberarm_engine.git
synced 2026-03-28 22:56:13 +00:00
Refactored mesh handling, imported AABB tree implementation from I-MIC FPS
This commit is contained in:
@@ -48,12 +48,12 @@ module CyberarmEngine
|
||||
if _model
|
||||
@model.current_object = _model
|
||||
else
|
||||
raise "Couldn't find ModelObject!"
|
||||
raise "Couldn't find Mesh!"
|
||||
end
|
||||
end
|
||||
|
||||
def change_object(id, name)
|
||||
@model.objects << Model::ModelObject.new(id, name)
|
||||
@model.objects << Model::Mesh.new(id, name)
|
||||
@model.current_object = @model.objects.last
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user