Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/entity.h')
-rw-r--r--src/core/entity.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/entity.h b/src/core/entity.h
index f00e192..3ba2b0c 100644
--- a/src/core/entity.h
+++ b/src/core/entity.h
@@ -283,6 +283,16 @@ public:
/// clear all update flags
virtual void clear_updates();
+
+ /// set location
+ inline void set_location(const math::Vector3f &location) {
+ entity_location.assign(location);
+ }
+
+ /// set location
+ inline void set_axis(const math::Axis &axis) {
+ entity_axis.assign(axis);
+ }
/**
* @brief mutable reference to the location