diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-01 21:08:40 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-01 21:08:40 +0000 |
commit | 36ce28a7557c4b2b73316621471558354024ca54 (patch) | |
tree | 3aeb4502b3a4f91a54df5d25bedfd262e61d1cec /src/core/entity.h | |
parent | a22542f273de28d06ecaf2bd6fd741821e98512b (diff) |
roll control
Diffstat (limited to 'src/core/entity.h')
-rw-r--r-- | src/core/entity.h | 7 |
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 |