Skip to content

Commit

Permalink
Fix comments (I thought these were radians all the time...)
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp committed Dec 18, 2024
1 parent 27c0115 commit 73f03de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2714,7 +2714,7 @@ void Game::updatePointDir(const CameraOrientation &cam)
if (g_touchcontrols && isTouchCrosshairDisabled()) {
const v3f point_dir_rel = g_touchcontrols->getShootlineRel().getVector().normalize();

// Point direction relative to look direction, represented as pitch/yaw values
// getHorizontalAngle is Irrlicht's "direction to rotation" function
// Roll (Z) is always 0
const v3f point_rot_rel = point_dir_rel.getHorizontalAngle();

Expand Down
2 changes: 1 addition & 1 deletion src/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class Player
PlayerControl control;
const PlayerControl& getPlayerControl() { return control; }

// point direction, represented as pitch/yaw in radians, relative to look direction
// point direction, represented as pitch/yaw in degrees, relative to look direction
f32 point_pitch = 0.0f;
f32 point_yaw = 0.0f;

Expand Down

0 comments on commit 73f03de

Please sign in to comment.