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>2011-05-06 18:27:55 +0000
committerStijn Buys <ingar@osirion.org>2011-05-06 18:27:55 +0000
commit50947891a97f19fa11f9f073c8988156f9655d97 (patch)
tree2373dd39d70edd7995210aabb6973315465ba737 /src/model/collisionmesh.h
parente7a0b54c4717afdfa12a8847d5bc72b7b68290b4 (diff)
Support for func_rotate and func_move collision meshes.
Diffstat (limited to 'src/model/collisionmesh.h')
-rw-r--r--src/model/collisionmesh.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/model/collisionmesh.h b/src/model/collisionmesh.h
index e80774d..c1f9846 100644
--- a/src/model/collisionmesh.h
+++ b/src/model/collisionmesh.h
@@ -72,6 +72,10 @@ public:
return collisionmesh_axis;
}
+ inline const math::Vector3f &movement() const {
+ return collisionmesh_movement;
+ }
+
inline const float speed() const {
return collisionmesh_speed;
}
@@ -105,12 +109,16 @@ public:
collisionmesh_axis.assign(axis);
}
+ inline void set_movement(const math::Vector3f &movement) {
+ collisionmesh_movement.assign(movement);
+ }
+
/**
* @brief apply FragmentGroup parameters to the mesh
- * This method applies the fragmentgroups type, location, axis, distance, speed and scale
+ * This method applies the fragmentgroups type, location, axis, movement, distance, speed and scale
* to the collision mesh
*/
- void set_params(const FragmentGroup *group);
+ void set_params(const FragmentGroup &group);
/**
* @brief movement speed
@@ -147,6 +155,8 @@ private:
math::Vector3f collisionmesh_location;
math::Axis collisionmesh_axis;
+ math::Vector3f collisionmesh_movement;
+
float collisionmesh_speed;
float collisionmesh_scale;
float collisionmesh_distance;