Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/environments/rotor.h @ 10553

Last change on this file since 10553 was 10553, checked in by bknecht, 17 years ago

small rotation fix

File size: 790 bytes
RevLine 
[10276]1/*!
2 * @file rotor.h
3 *  Rotor is a object which rotates around a given adress with a given speed
4 */
5
6#ifndef _ROTOR_H
7#define _ROTOR_H
8
9/* INCLUDES */
10#include "world_entity.h"
11
12/* FORWARD DECLARATION */
13
14//! A Class to handle a Building
15class Rotor : public WorldEntity
16{
17  ObjectListDeclaration(Rotor);
18  public:
19    Rotor(const TiXmlElement* root);
20
21    virtual ~Rotor();
[10533]22
[10276]23    virtual void loadParams(const TiXmlElement* root);
[10533]24
[10276]25    void initRotation(float x, float y, float z);
[10533]26
[10276]27    virtual void tick(float time);
[10533]28
[10276]29  private:
30    Vector              rotation;         //!< the rotation axis
[10553]31    Quaternion          mainDir;          //!< the start direction
[10533]32    double              totalTime;        //!< total time
[10276]33};
34
35#endif  /* _ROTOR_H */
36
37
38
Note: See TracBrowser for help on using the repository browser.