Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OgrePhysVisObject.h
Go to the documentation of this file.
1 // Copyright (C) 2004-2011 Dylan Blair
3 //
4 // email: dblair@alumni.cs.utexas.edu
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 
21 #ifndef OGRE_PHYS_VIS_OBJECT_H
22 #define OGRE_PHYS_VIS_OBJECT_H
23 
24 #include "../Core_LIB/CPhysVisObject.h"
25 
26 #include "OgreVisibleObject.h"
27 
28 namespace OpenSkyNet {
29  namespace OgreCore {
32  protected:
33  Ogre::SceneNode* _visColVol;
34  public:
35  OgrePhysVisObject(Ogre::SceneNode* renderNode_, CD::Shape* shape_, Utils::uint colGroup_, const Math::Point<> &pos_, const Math::Matrix3x3 &rot_);
36  OgrePhysVisObject(Ogre::SceneNode* renderNode_, CD::Shape* shape_, Utils::uint colGroup_);
37 
39  virtual void syncVisFromPhys();
40 
42  virtual void showCollisionVolume(bool show_=true) { if (_visColVol) _visColVol->setVisible(show_); }
43 
45  virtual void setVisibleCollisionVolume(Ogre::SceneNode* visColVol_) { _visColVol = visColVol_; }
46  };
47  }
48 }
49 
50 #endif //OGRE_PHYS_VIS_OBJECT_H
#define OGRECORE_DLL
Definition: OgreCoreDLL.h:57
Definition: CPhysVisObject.h:30
virtual void showCollisionVolume(bool show_=true)
Definition: OgrePhysVisObject.h:42
Definition: CDVolume.h:54
Ogre::SceneNode * _visColVol
Definition: OgrePhysVisObject.h:33
unsigned int uint
Definition: UTypes.h:39
Definition: MPoint.h:33
virtual void setVisibleCollisionVolume(Ogre::SceneNode *visColVol_)
Definition: OgrePhysVisObject.h:45
Definition: MMatrix3x3.h:32
Definition: OgrePhysVisObject.h:31
float float rot_[3]
Definition: ViewerApp.h:31
float pos_[3]
Definition: ViewerApp.h:31