summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-04 23:06:47 +0200
committermadmaxoft <github@xoft.cz>2014-04-05 12:09:30 +0200
commit1cab52f86799b98940da910e84e207b6037a5cd2 (patch)
treedff323587cf3990b6ffd19b49a96dd7dd09bb1f5 /src/Entities/Player.h
parentMerge pull request #840 from Howaner/NewBlocks (diff)
downloadcuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar
cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.gz
cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.bz2
cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.lz
cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.xz
cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.tar.zst
cuberite-1cab52f86799b98940da910e84e207b6037a5cd2.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index ea32dbfb9..05377a117 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -129,6 +129,12 @@ public:
// tolua_begin
+ /** Sends the "look" packet to the player, forcing them to set their rotation to the specified values.
+ a_YawDegrees is clipped to range [-180, +180),
+ a_PitchDegrees is clipped to range [-180, +180) but the client only uses [-90, +90]
+ */
+ void SendRotation(double a_YawDegrees, double a_PitchDegrees);
+
/** Returns the position where projectiles thrown by this player should start, player eye position + adjustment */
Vector3d GetThrowStartPos(void) const;