From 36ce28a7557c4b2b73316621471558354024ca54 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 1 May 2008 21:08:40 +0000 Subject: roll control --- src/core/entity.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/entity.h') 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 -- cgit v1.2.3