Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickupsFS14/src/modules/jump/JumpPlatform.cc @ 10022

Last change on this file since 10022 was 10022, checked in by fvultier, 10 years ago

Anzeigen eines .mesh files funktioniert. Es wird nicht im Level-File geladen sondern dynamisch zur laufzeit, wenn die s-taste gedrueckt wird.

File size: 1.8 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Benjamin de Capitani
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29#include "JumpPlatform.h"
30
31#include "core/CoreIncludes.h"
32#include "core/GameMode.h"
33#include "core/command/Executor.h"
34#include "tools/ParticleInterface.h"
35#include "Scene.h"
36#include "graphics/ParticleSpawner.h"
37#include "graphics/Model.h"
38#include "worldentities/MovableEntity.h"
39#include "chat/ChatManager.h"
40#include "OrxonoxPrereqs.h"
41
42namespace orxonox
43{
44    RegisterClass(JumpPlatform);
45
46    JumpPlatform::JumpPlatform(Context* context) : MobileEntity(context)
47    {
48        RegisterObject(JumpPlatform);
49
50
51        model = new Model(getContext());
52        model->setSyncMode(0);
53        model->setMeshSource("drone.mesh");
54
55        movableEntity = new MovableEntity(getContext());
56        movableEntity->attach(model);
57
58        movableEntity->setScale(100);
59        //movableEntity->setPosition(Vector3(0,0,0));
60        //movableEntity->setVelocity(Vector3(0,0,1));
61
62
63    }
64
65
66
67
68}
Note: See TracBrowser for help on using the repository browser.