mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Refactor player's eye position coding
Collect the player's eye position coding in a Player method, and use it in client to pass the eye position information to the game.
This commit is contained in:
parent
98fa00db12
commit
b318e82356
4 changed files with 16 additions and 8 deletions
|
@ -206,7 +206,9 @@ public:
|
|||
// Wrapper to Map
|
||||
NodeMetadata* getNodeMetadata(v3s16 p);
|
||||
|
||||
v3f getPlayerPosition();
|
||||
// Get the player position, and optionally put the
|
||||
// eye position in *eye_position
|
||||
v3f getPlayerPosition(v3f *eye_position=NULL);
|
||||
|
||||
void setPlayerControl(PlayerControl &control);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue