|
@@ -12,14 +12,11 @@
|
|
|
#include "level_resource.h"
|
|
#include "level_resource.h"
|
|
|
#include "memory.h"
|
|
#include "memory.h"
|
|
|
#include "matrix4x4.h"
|
|
#include "matrix4x4.h"
|
|
|
-#include "int_setting.h"
|
|
|
|
|
#include <new>
|
|
#include <new>
|
|
|
|
|
|
|
|
namespace crown
|
|
namespace crown
|
|
|
{
|
|
{
|
|
|
|
|
|
|
|
-static IntSetting g_physics_debug("physics.debug", "Enable physics debug rendering.", 0, 0, 1);
|
|
|
|
|
-
|
|
|
|
|
World::World(ResourceManager& rm, LuaEnvironment& env)
|
|
World::World(ResourceManager& rm, LuaEnvironment& env)
|
|
|
: _resource_manager(&rm)
|
|
: _resource_manager(&rm)
|
|
|
, _lua_environment(&env)
|
|
, _lua_environment(&env)
|
|
@@ -156,8 +153,7 @@ void World::render(Camera* camera)
|
|
|
_render_world->update(camera->view_matrix(), camera->projection_matrix(), camera->_view_x, camera->_view_y,
|
|
_render_world->update(camera->view_matrix(), camera->projection_matrix(), camera->_view_x, camera->_view_y,
|
|
|
camera->_view_width, camera->_view_height);
|
|
camera->_view_width, camera->_view_height);
|
|
|
|
|
|
|
|
- if (g_physics_debug == 1)
|
|
|
|
|
- _physics_world->draw_debug(*_lines);
|
|
|
|
|
|
|
+ // _physics_world->draw_debug(*_lines);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
CameraId World::create_camera(SceneGraph& sg, UnitId id, ProjectionType::Enum type, float near, float far)
|
|
CameraId World::create_camera(SceneGraph& sg, UnitId id, ProjectionType::Enum type, float near, float far)
|