Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-12-21 12:12:53 +0000
committerStijn Buys <ingar@osirion.org>2008-12-21 12:12:53 +0000
commitaad0913d91fc3b682deddb5a5f8380d1475174f5 (patch)
tree5b1489a36e7640805058d99db0a0c44447949f4a /src/model/fragment.h
parentda4b99de2cf290ccdd22587a8c50aeeadd5ac957 (diff)
improved func_rotate
Diffstat (limited to 'src/model/fragment.h')
-rw-r--r--src/model/fragment.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/model/fragment.h b/src/model/fragment.h
index fcdeca3..204a3c9 100644
--- a/src/model/fragment.h
+++ b/src/model/fragment.h
@@ -86,11 +86,16 @@ public:
inline const Type type() const { return group_type; }
+ inline const size_t size() const { return group_fragments.size(); }
+
+ inline const float angle() const { return group_angle; }
+
+ inline const float speed() const { return group_speed; }
+
inline iterator begin() { return group_fragments.begin(); }
inline iterator end() { return group_fragments.end(); }
- inline size_t size() const { return group_fragments.size(); }
inline void push_back(Fragment *fragment) { group_fragments.push_back(fragment); }
@@ -98,7 +103,12 @@ public:
inline void set_type(const Type type) { group_type = type; }
+ inline void set_angle(const float angle) { group_angle = angle; }
+
+ inline void set_speed(const float speed) { group_speed = speed; }
+
void clear();
+
private:
/// type definition for a list of model fragments
typedef std::list<Fragment *> Fragments;
@@ -108,6 +118,8 @@ private:
math::Vector3f group_forward;
Type group_type;
+ float group_angle;
+ float group_speed;
};
}