From 035653e94a3d74b8f18c993034199d7cd08a895a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 21 Jan 2011 14:41:35 +0000 Subject: Support structures for complex entity collision, renamed sv_arrysize cvar to mem_vertex. --- src/model/model.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/model/model.cc') diff --git a/src/model/model.cc b/src/model/model.cc index fb33bd0..d1805df 100644 --- a/src/model/model.cc +++ b/src/model/model.cc @@ -1,5 +1,5 @@ /* - render/model.h + render/model.cc This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ @@ -29,6 +29,8 @@ Model::Model(const std::string & name) : model_tris_count = 0; model_quad_detail_count = 0; model_quad_count = 0; + + model_collisionmesh = 0; } Model::~Model() @@ -70,6 +72,11 @@ Model::~Model() model_sounds.clear(); } +void Model::set_collisionmesh(CollisionMesh *collisionmesh) +{ model_collisionmesh = collisionmesh; + +} + void Model::set_origin(const math::Vector3f &origin) { model_origin.assign(origin); -- cgit v1.2.3