mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
lua methods set_look_pitch and set_look_yaw
This commit is contained in:
parent
c00c8832c6
commit
7f51b2da28
5 changed files with 51 additions and 2 deletions
|
@ -1228,6 +1228,8 @@ Player-only: (no-op for other objects)
|
|||
- get_look_dir(): get camera direction as a unit vector
|
||||
- get_look_pitch(): pitch in radians
|
||||
- get_look_yaw(): yaw in radians (wraps around pretty randomly as of now)
|
||||
- set_look_pitch(radians): sets look pitch
|
||||
- set_look_yaw(radians): sets look yaw
|
||||
- set_inventory_formspec(formspec)
|
||||
^ Redefine player's inventory form
|
||||
^ Should usually be called in on_joinplayer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue