Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: efdfe3368050695921ebcd0e94e572a0b4c2082a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
   base/cargopod.cc
   This file is part of the Osirion project and is distributed under
   the terms and conditions of the GNU General Public License version 2
*/

#include "base/cargopod.h"
#include "base/game.h"

namespace game
{
	
CargoPod::CargoPod() : EntityDynamic()
{
	entity_moduletypeid = cargopod_enttype;
	set_name("Cargo pod");
	set_label("cargopod");
	
	// FIXME hardcoded modelname
	set_modelname("maps/cargo/pod");
	
	set_mass(radius());
	
	// activate physics
	reset();
	
	const float damp = Game::g_damping->value();
	body()->setDamping(damp, damp);
}

CargoPod::~CargoPod()
{

}

} // namespace game