Refactored mesh handling, imported AABB tree implementation from I-MIC FPS

This commit is contained in:
2025-05-03 18:21:11 -05:00
parent b3561f02c1
commit eabad4abd4
16 changed files with 356 additions and 56 deletions

View File

@@ -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