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-05-01 21:08:40 +0000
committerStijn Buys <ingar@osirion.org>2008-05-01 21:08:40 +0000
commit36ce28a7557c4b2b73316621471558354024ca54 (patch)
tree3aeb4502b3a4f91a54df5d25bedfd262e61d1cec /src/core/entity.h
parenta22542f273de28d06ecaf2bd6fd741821e98512b (diff)
roll control
Diffstat (limited to 'src/core/entity.h')
-rw-r--r--src/core/entity.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/entity.h b/src/core/entity.h
index e71b034..7e6493a 100644
--- a/src/core/entity.h
+++ b/src/core/entity.h
@@ -269,6 +269,9 @@ public:
/// set the target pitch
void set_pitch(float pitch);
+ /// set target roll
+ void set_roll(float roll);
+
/// runs one game frame for the entity
/**
* The default implementation will set direction() and thrust() to the desired targets
@@ -293,6 +296,10 @@ public:
/** target_pitch must be in the [-1, 1] range
*/
float target_pitch;
+ /// target roll as set by the client
+ /** target_roll must be in the [-1, 1] range
+ */
+ float target_roll;
};
/// a Globe entity