diff options
author | Stijn Buys <ingar@osirion.org> | 2011-05-06 16:32:55 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-05-06 16:32:55 +0000 |
commit | ebe064bf159a5c6e90f2bbe902efa16c6e654ff8 (patch) | |
tree | c15ac8d3a9c5a21ce09da1b6834ab7e9f98d9e10 /src/model/fragment.h | |
parent | 1687737ca713cd0baeca3cf79950ef4877640c99 (diff) |
Always use a btCompoundShape for complex collision,
added infrastructure for collision mesh animation,
minor API documentation updates
Diffstat (limited to 'src/model/fragment.h')
-rw-r--r-- | src/model/fragment.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/model/fragment.h b/src/model/fragment.h index db5f569..fcacecc 100644 --- a/src/model/fragment.h +++ b/src/model/fragment.h @@ -98,10 +98,17 @@ public: return group_location; } + /** + * @brief movement vector for moving groups + * For rotating groups, this is the rotation axis + */ inline const math::Vector3f &movement() const { return group_movement; } + /** + * @brief local rotation matrix of the group + */ inline const math::Axis & axis() const { return group_axis; } @@ -150,17 +157,15 @@ public: /** - * @brief rotation axis - * For normal groups, this is the transformation matrix - * For rotating groups axis->forward() is the axis of the rotation. - * For movers, axis->forward() is the axis of movement. + * @brief set the rotation axis + * set the local rotation matrix of the group */ inline void set_axis(const math::Axis &axis) { group_axis.assign(axis); } /** - * @brief movement speed + * @brief set movement speed * For rotating groups this is the number of degrees per second * For movers, this is the speed in units per second */ |